aboutsummaryrefslogtreecommitdiffstats
path: root/bignum.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-30 09:12:11 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-30 09:12:11 +0000
commitd13774e23f75fe86d57a0bb06a569ec75e5dff06 (patch)
tree9893cea1cb3ca06f425fb7053efc956abfe496f2 /bignum.c
parent11678caa3454ee944e3c8034d9b3f882e2b9b42f (diff)
downloadruby-d13774e23f75fe86d57a0bb06a569ec75e5dff06.tar.gz
Define Integer#GMP_VERSION.
* bignum.c (Init_Bignum): Define Integer#GMP_VERSION. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bignum.c b/bignum.c
index c23f439087..048568d035 100644
--- a/bignum.c
+++ b/bignum.c
@@ -6890,6 +6890,7 @@ Init_Bignum(void)
#ifdef USE_GMP
/* The version of loaded GMP. */
rb_define_const(rb_cBignum, "GMP_VERSION", rb_sprintf("GMP %s", gmp_version));
+ rb_define_const(rb_cInteger, "GMP_VERSION", rb_sprintf("GMP %s", gmp_version));
#endif
power_cache_init();