aboutsummaryrefslogtreecommitdiffstats
path: root/include/ruby/defines.h
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-03 07:37:22 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-03 07:37:22 +0000
commita3b4b499a5ddd35572d7033ddb28ecf1c668bfce (patch)
treeff69e06ba6aa6d0e077ca1107a90be72aa071605 /include/ruby/defines.h
parent742d6ffb552b2cd4b7596975f372c8d241acdf34 (diff)
downloadruby-a3b4b499a5ddd35572d7033ddb28ecf1c668bfce.tar.gz
* include/ruby/missing.h: don't use HAVE_STDDEF_H because it never
defined by configure though configure.bat defines it. * include/ruby/ruby.h: move include stddef.h to defines.h * include/ruby/defines.h: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/defines.h')
-rw-r--r--include/ruby/defines.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/ruby/defines.h b/include/ruby/defines.h
index ef2dbfeff1..255b4aeee9 100644
--- a/include/ruby/defines.h
+++ b/include/ruby/defines.h
@@ -24,7 +24,10 @@ extern "C" {
#define RUBY
-#include <stdlib.h>
+# include <stddef.h>
+#ifdef HAVE_STDLIB_H
+# include <stdlib.h>
+#endif
#ifdef __cplusplus
# ifndef HAVE_PROTOTYPES
# define HAVE_PROTOTYPES 1