From d01f22ec7cf339902e82b3c27f227db5117b20ed Mon Sep 17 00:00:00 2001 From: ttate Date: Thu, 6 Jul 2006 19:59:31 +0000 Subject: 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 --- ext/dl/dl.c | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'ext/dl/dl.c') 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 -- cgit v1.2.3