aboutsummaryrefslogtreecommitdiffstats
path: root/ext/dl/dl.c
diff options
context:
space:
mode:
authorttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-06 19:59:31 +0000
committerttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-06 19:59:31 +0000
commitd01f22ec7cf339902e82b3c27f227db5117b20ed (patch)
treed27a534c8f3b28925c2d9f4c746b5ed2525a2da5 /ext/dl/dl.c
parent57fe65940c5db82ab6d932c3590578679a95ef6c (diff)
downloadruby-d01f22ec7cf339902e82b3c27f227db5117b20ed.tar.gz
conformed to the usage of FUNC_CDECL/STDCALL described in [ruby-dev:28970].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/dl.c')
-rw-r--r--ext/dl/dl.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/ext/dl/dl.c b/ext/dl/dl.c
index fcfcbd1bcc..015e76f09e 100644
--- a/ext/dl/dl.c
+++ b/ext/dl/dl.c
@@ -56,31 +56,6 @@ rb_dl_value2ptr(VALUE self, VALUE val)
return PTR2NUM((void*)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) || defined(__BORLANDC__)
-# 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
-#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
-
#include "callback.h"
void