summaryrefslogtreecommitdiff
path: root/rational.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-22 03:02:40 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-22 03:02:40 (GMT)
commit062b4d675231fe9f8d266bed4406b6f591844fde (patch)
treef4c45bb968a684277224ef51ababb7f9782f61fe /rational.c
parent0bd71ff35455d308c838c00a7e16fd093d36e4d7 (diff)
* include/ruby/{intern,io}.h: add missing prototypes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rational.c')
-rw-r--r--rational.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/rational.c b/rational.c
index f5a6d26..1d4f1ab 100644
--- a/rational.c
+++ b/rational.c
@@ -403,11 +403,19 @@ f_rational_new_bang2(VALUE klass, VALUE x, VALUE y)
#ifdef CANON
static int canonicalization = 0;
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility push(default)
+#endif
+
void
nurat_canonicalization(int f)
{
canonicalization = f;
}
+
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility pop
+#endif
#endif
inline static void