diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-28 10:39:33 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-28 10:39:33 +0000 |
commit | 97bc1a122b55e026a367e7c92de8b2245efb3b12 (patch) | |
tree | 547daa0d561a70640a37b205c9eadaa3ec71bf9f /include | |
parent | 51b6bfb0119356c689fbacf4c399e3e1816dec47 (diff) |
* win32/Makefile.sub (config.h): VC6 or later have stddef.h.
* include/ruby/missing.h: need to include stddef.h for size_t.
* include/ruby/missing.h: shouldn't declare as dllimport when building
ruby itself (for Windows).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/missing.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/ruby/missing.h b/include/ruby/missing.h index bed633d379..abbd2bf870 100644 --- a/include/ruby/missing.h +++ b/include/ruby/missing.h @@ -19,6 +19,9 @@ extern "C" { #endif #include "ruby/config.h" +#if defined(HAVE_STDDEF_H) +# include <stddef.h> +#endif #ifdef RUBY_EXTCONF_H #include RUBY_EXTCONF_H #endif @@ -50,6 +53,9 @@ struct timezone { }; #endif +#ifdef RUBY_EXPORT +#undef RUBY_EXTERN +#endif #ifndef RUBY_EXTERN #define RUBY_EXTERN extern #endif |