summaryrefslogtreecommitdiff
path: root/ext/dl/cfunc.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dl/cfunc.c')
-rw-r--r--ext/dl/cfunc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/dl/cfunc.c b/ext/dl/cfunc.c
index 739de9659e9..94816204f1b 100644
--- a/ext/dl/cfunc.c
+++ b/ext/dl/cfunc.c
@@ -229,6 +229,10 @@ rb_dlcfunc_inspect(VALUE self)
#elif defined(_MSC_VER) || defined(__BORLANDC__)
# define DECL_FUNC_CDECL(f,ret,args) ret (__cdecl *f)(args)
# define DECL_FUNC_STDCALL(f,ret,args) ret (__stdcall *f)(args)
+#elif defined(__SUNPRO_C)
+# define DECL_FUNC(f,ret,args,calltype) ret (*f)(args)
+# define DECL_FUNC_CDECL(f,ret,args) ret (*f)(args)
+# define DECL_FUNC_STDCALL(f,ret,args) ret (*f)(args)
#else
# error "unsupported compiler."
#endif