summaryrefslogtreecommitdiff
path: root/include/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'include/ruby')
-rw-r--r--include/ruby/defines.h5
-rw-r--r--include/ruby/missing.h4
-rw-r--r--include/ruby/ruby.h5
3 files changed, 5 insertions, 9 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
diff --git a/include/ruby/missing.h b/include/ruby/missing.h
index abbd2bf870..660edb529d 100644
--- a/include/ruby/missing.h
+++ b/include/ruby/missing.h
@@ -19,9 +19,7 @@ extern "C" {
#endif
#include "ruby/config.h"
-#if defined(HAVE_STDDEF_H)
-# include <stddef.h>
-#endif
+#include <stddef.h>
#ifdef RUBY_EXTCONF_H
#include RUBY_EXTCONF_H
#endif
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index 8ecb0f2405..afa181509a 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -44,10 +44,6 @@ extern "C" {
#define PRINTF_ARGS(decl, string_index, first_to_check) decl
#endif
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
-
#ifdef HAVE_STRING_H
# include <string.h>
#else
@@ -66,7 +62,6 @@ extern "C" {
#endif
#include <stdarg.h>
-#include <stddef.h>
#include <stdio.h>
#include "defines.h"