diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-28 19:24:10 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-28 19:24:10 +0000 |
commit | ff504d3cc96bf315b06c988c080ab47121ce3c41 (patch) | |
tree | 35dbbc9478584bd69117c3bd5580f94b5fa6015b | |
parent | 9ebc378e9a60bea64ebe8173c5c46a8866f9e34e (diff) | |
download | ruby-ff504d3cc96bf315b06c988c080ab47121ce3c41.tar.gz |
* include/ruby/st.h: include inttypes.h and stdint.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | include/ruby/st.h | 7 |
2 files changed, 11 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Tue Sep 29 04:06:18 2009 NARUSE, Yui <naruse@ruby-lang.org> + + * include/ruby/st.h: include inttypes.h and stdint.h. + Tue Sep 29 00:07:06 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> * hash.c (rb_f_getenv, env_fetch): env string may be overwritten. diff --git a/include/ruby/st.h b/include/ruby/st.h index 76f240d1ca..fd9bc4e1ec 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 |