From ff504d3cc96bf315b06c988c080ab47121ce3c41 Mon Sep 17 00:00:00 2001 From: naruse Date: Mon, 28 Sep 2009 19:24:10 +0000 Subject: [PATCH] * 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 --- ChangeLog | 4 ++++ include/ruby/st.h | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 2b0536d23e..a9a62ad2fb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Sep 29 04:06:18 2009 NARUSE, Yui + + * include/ruby/st.h: include inttypes.h and stdint.h. + Tue Sep 29 00:07:06 2009 Nobuyoshi Nakada * 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 #endif +#ifdef HAVE_STDINT_H +# include +#endif +#ifdef HAVE_INTTYPES_H +# include +#endif + #if SIZEOF_LONG == SIZEOF_VOIDP typedef unsigned long st_data_t; #elif SIZEOF_LONG_LONG == SIZEOF_VOIDP