summaryrefslogtreecommitdiff
path: root/ext/-test-/rational
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-08 10:52:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-08 10:52:52 +0000
commit3fa0edda0569b460ad807ac6756d42add809b0ac (patch)
treeb051d4242b68830282f4278834e7dfd9616b5744 /ext/-test-/rational
parent8953eee69f52d4f7f32fa1cf7f917bc6c3cbfebe (diff)
rat.c: suppress warning
* ext/-test-/rational/rat.c (big): used only if GMP is available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/-test-/rational')
-rw-r--r--ext/-test-/rational/rat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/-test-/rational/rat.c b/ext/-test-/rational/rat.c
index 49e216a..63ca849 100644
--- a/ext/-test-/rational/rat.c
+++ b/ext/-test-/rational/rat.c
@@ -1,6 +1,7 @@
#include "ruby.h"
#include "internal.h"
+#if defined(HAVE_LIBGMP) && defined(HAVE_GMP_H)
static VALUE
big(VALUE x)
{
@@ -11,6 +12,7 @@ big(VALUE x)
rb_raise(rb_eTypeError, "can't convert %s to Bignum",
rb_obj_classname(x));
}
+#endif
static VALUE
gcd_normal(VALUE x, VALUE y)