summaryrefslogtreecommitdiffstats
path: root/include/ruby/st.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ruby/st.h')
-rw-r--r--include/ruby/st.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/ruby/st.h b/include/ruby/st.h
index 76f240d1c..fd9bc4e1e 100644
--- a/include/ruby/st.h
+++ b/include/ruby/st.h
@@ -26,6 +26,13 @@ extern "C" {
#include <stdlib.h>
#endif
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
+#ifdef HAVE_INTTYPES_H
+# include <inttypes.h>
+#endif
+
#if SIZEOF_LONG == SIZEOF_VOIDP
typedef unsigned long st_data_t;
#elif SIZEOF_LONG_LONG == SIZEOF_VOIDP