summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-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 27621fa5a7..7b8ad077ae 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 */