summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ext/dl/dl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/dl/dl.h b/ext/dl/dl.h
index 27621fa5a..7b8ad077a 100644
--- a/ext/dl/dl.h
+++ b/ext/dl/dl.h
@@ -3,6 +3,13 @@
#include <ruby.h>
+#if !defined(FUNC_CDECL)
+# define FUNC_CDECL(x) x
+#endif
+#if !defined(FUNC_STDCALL)
+# define FUNC_STDCALL(x) x
+#endif
+
#if defined(HAVE_DLFCN_H)
# include <dlfcn.h>
# /* some stranger systems may not define all of these */