summaryrefslogtreecommitdiff
path: root/ext/-test-
diff options
context:
space:
mode:
Diffstat (limited to 'ext/-test-')
-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 49e216aa416..63ca8498165 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)