summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-11 02:11:09 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-11 02:11:09 +0000
commit3e675b45c2bd08975279b507ca28500abdf50997 (patch)
tree968f2427f6bb4f6e2e51c4a5094eb453547b5775 /include
parent994ccbdc5d2e462ec058377eb98d3c2c8b5176f4 (diff)
* include/ruby/st.h (size_t): needs stddef.h or stdlib.h.
[ruby-core:20339] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@20622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r--include/ruby/st.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/ruby/st.h b/include/ruby/st.h
index 84ef72b440..31bac7b1ad 100644
--- a/include/ruby/st.h
+++ b/include/ruby/st.h
@@ -12,6 +12,19 @@ extern "C" {
#endif
#endif
+#ifndef RUBY_LIB
+#include "ruby/config.h"
+#ifdef RUBY_EXTCONF_H
+#include RUBY_EXTCONF_H
+#endif
+#endif
+
+#if defined STDC_HEADERS
+#include <stddef.h>
+#elif defined HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
#if SIZEOF_LONG == SIZEOF_VOIDP
typedef unsigned long st_data_t;
#elif SIZEOF_LONG_LONG == SIZEOF_VOIDP