diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-03 20:07:10 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-03 20:07:10 +0000 |
commit | fe602671f0f77ef40689a9f815ad27357797f59b (patch) | |
tree | 443079f17eb9e24e8ec1465a85b5ac986f663f31 /ext/dl | |
parent | 6824e7217d9f34cc21d3dd84c14f1d6c9d41352a (diff) | |
download | ruby-fe602671f0f77ef40689a9f815ad27357797f59b.tar.gz ruby-fe602671f0f77ef40689a9f815ad27357797f59b.tar.xz ruby-fe602671f0f77ef40689a9f815ad27357797f59b.zip |
* bignum.c: ruby 1.9 HEAD 64 bit warnings clean up from
<ville.mattila at stonesoft.com>. [ruby-core:08120]
* ChangeLog: remove some direct reference to mail addresses
to prevent spams.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl')
-rw-r--r-- | ext/dl/cfunc.c | 4 | ||||
-rw-r--r-- | ext/dl/dl.c | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/ext/dl/cfunc.c b/ext/dl/cfunc.c index 739de9659..94816204f 100644 --- a/ext/dl/cfunc.c +++ b/ext/dl/cfunc.c @@ -229,6 +229,10 @@ rb_dlcfunc_inspect(VALUE self) #elif defined(_MSC_VER) || defined(__BORLANDC__) # define DECL_FUNC_CDECL(f,ret,args) ret (__cdecl *f)(args) # define DECL_FUNC_STDCALL(f,ret,args) ret (__stdcall *f)(args) +#elif defined(__SUNPRO_C) +# define DECL_FUNC(f,ret,args,calltype) ret (*f)(args) +# define DECL_FUNC_CDECL(f,ret,args) ret (*f)(args) +# define DECL_FUNC_STDCALL(f,ret,args) ret (*f)(args) #else # error "unsupported compiler." #endif diff --git a/ext/dl/dl.c b/ext/dl/dl.c index 4473e8d49..fcfcbd1bc 100644 --- a/ext/dl/dl.c +++ b/ext/dl/dl.c @@ -70,6 +70,13 @@ rb_dl_value2ptr(VALUE self, VALUE val) # 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 |