summaryrefslogtreecommitdiff
path: root/ruby.h
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-08 08:42:55 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-08 08:42:55 +0000
commit98e7a2abca70fd044d5db7e1404c218e74abbd33 (patch)
tree760f5470b6df9dffbeb2f789a6512819b0bcd5dc /ruby.h
parent8c788b8a430ae3b683dec7246ec13fffd47dbe36 (diff)
merge revision(s) 27721:27725,27738:27740:
* pack.c: backport integer pack/unpack from 1.9 for [ruby-core:21937]. * configure.in: backport RUBY_DEFINT and fixed size integer checks. * ruby.h: include stdint.h if available. * bignum.c (rb_big_pack): defined.. (rb_big_unpack): defined. * intern.h (rb_big_pack): declared. (rb_big_unpack): declared. * pack.c (pack_pack): call rb_quad_pack to preserve RangeError. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@28220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.h')
-rw-r--r--ruby.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ruby.h b/ruby.h
index f6e7ef478e..4129299757 100644
--- a/ruby.h
+++ b/ruby.h
@@ -50,6 +50,10 @@ extern "C" {
# include <intrinsics.h>
#endif
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
+
#include <stddef.h>
#include <stdio.h>