diff options
author | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-07 14:19:41 +0000 |
---|---|---|
committer | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-07 14:19:41 +0000 |
commit | 5bffc7aa734f3106b061ffe7e17842fc41f6b402 (patch) | |
tree | a73eb393fea90579b23aaccf768ead6c76dbe816 /ext | |
parent | fcc7e76943f4f021ff57c5a4faed7630d4388912 (diff) | |
download | ruby-5bffc7aa734f3106b061ffe7e17842fc41f6b402.tar.gz ruby-5bffc7aa734f3106b061ffe7e17842fc41f6b402.tar.xz ruby-5bffc7aa734f3106b061ffe7e17842fc41f6b402.zip |
should define FUNC_CDECL/STDCALL if the macros are not defined.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/dl/dl.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/dl/dl.h b/ext/dl/dl.h index 27621fa5a..7b8ad077a 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 */ |