aboutsummaryrefslogtreecommitdiffstats
path: root/include/ruby/st.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ruby/st.h')
-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