summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-28 19:24:10 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-28 19:24:10 +0000
commit10735fd63591cdd788fbcc6cfd5152c6d3e34baa (patch)
tree35dbbc9478584bd69117c3bd5580f94b5fa6015b /include
parent16b220a2c474d047d0a7cdd3396e4dd6789d87ea (diff)
downloadruby-10735fd63591cdd788fbcc6cfd5152c6d3e34baa.tar.gz
ruby-10735fd63591cdd788fbcc6cfd5152c6d3e34baa.tar.xz
ruby-10735fd63591cdd788fbcc6cfd5152c6d3e34baa.zip
* include/ruby/st.h: include inttypes.h and stdint.h.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-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