summaryrefslogtreecommitdiff
path: root/ext/dl/dl.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dl/dl.c')
-rw-r--r--ext/dl/dl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/dl/dl.c b/ext/dl/dl.c
index 4473e8d498..fcfcbd1bcc 100644
--- a/ext/dl/dl.c
+++ b/ext/dl/dl.c
@@ -70,6 +70,13 @@ rb_dl_value2ptr(VALUE self, VALUE val)
# define MIDST_DECL_STDCALL __stdcall
# define POST_DECL_CDECL
# define POST_DECL_STDCALL
+#elif (__SUNPRO_C)
+# define PRE_DECL_CDECL
+# define PRE_DECL_STDCALL
+# define MIDST_DECL_CDECL
+# define MIDST_DECL_STDCALL
+# define POST_DECL_CDECL
+# define POST_DECL_STDCALL
#else
# error "unsupported compiler"
#endif