summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-07 14:19:41 +0000
committerttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-07 14:19:41 +0000
commita5b2d039d1ee21703ce478de4650e9f3ac597e47 (patch)
treea73eb393fea90579b23aaccf768ead6c76dbe816
parent0fbcc455bd4601ed39919379058fc63f44923cfb (diff)
should define FUNC_CDECL/STDCALL if the macros are not defined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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 27621fa5a73..7b8ad077ae0 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 */