diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-11 02:11:09 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-11 02:11:09 +0000 |
commit | 36eed7bdfbba432b220cc4e225f20dffcabc6e4f (patch) | |
tree | 4754199fb02f495c83cc6a49d7941daccfb438f1 /include/ruby/st.h | |
parent | 8249d674fd1fb88c0c2abbd450712771f68a713a (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/trunk@20622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/st.h')
-rw-r--r-- | include/ruby/st.h | 13 |
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 |