summaryrefslogtreecommitdiff
path: root/ext/dl/dl.c
diff options
context:
space:
mode:
authorttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-06 18:07:10 +0000
committerttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-06 18:07:10 +0000
commitdca41072d39248093c84fb29c823c9b06a30724c (patch)
treef6e999222f25bb745bcf0a723069fcefd6aca431 /ext/dl/dl.c
parent1f0125e4aafceca63b4ce353dbb58e66c1052bd8 (diff)
Added VC++ support thanks to U.Nakamura's patch. [ruby-dev:25644]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/dl.c')
-rw-r--r--ext/dl/dl.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/dl/dl.c b/ext/dl/dl.c
index ed46c0ef33..d63777e6c5 100644
--- a/ext/dl/dl.c
+++ b/ext/dl/dl.c
@@ -58,6 +58,15 @@ rb_dl_value2ptr(VALUE self, VALUE val)
#if defined(__GNUC__)
# define PRE_DECL_CDECL __attribute__((cdecl))
# define PRE_DECL_STDCALL __attribute__((stdcall))
+# define MIDST_DECL_CDECL
+# define MIDST_DECL_STDCALL
+# define POST_DECL_CDECL
+# define POST_DECL_STDCALL
+#elif defined(_MSC_VER)
+# define PRE_DECL_CDECL
+# define PRE_DECL_STDCALL
+# define MIDST_DECL_CDECL __cdecl
+# define MIDST_DECL_STDCALL __stdcall
# define POST_DECL_CDECL
# define POST_DECL_STDCALL
#else