summaryrefslogtreecommitdiff
path: root/rational.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-14 06:33:06 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-14 06:33:06 +0000
commitdccf9e0c45f1f450d28ba0700dbb459247ba9f9d (patch)
tree8ef41c677fb06897c021b8d6615b70724d2efad3 /rational.c
parenta23b1f745038f93e5cd2542fbf17b363686ccfd7 (diff)
* configure.in, include/ruby/defines.h (RUBY_FUNC_EXPORTED): macro
to declare exported function. * array.c (rb_ary_memsize), string.c (rb_str_memsize), variable.c (rb_objspace_data_type_memsize): used in objspace. [ruby-dev:42022] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rational.c')
-rw-r--r--rational.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/rational.c b/rational.c
index 085f914..9334b14 100644
--- a/rational.c
+++ b/rational.c
@@ -403,19 +403,11 @@ 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
+RUBY_FUNC_EXPORTED void
nurat_canonicalization(int f)
{
canonicalization = f;
}
-
-#if defined __GNUC__ && __GNUC__ >= 4
-#pragma GCC visibility pop
-#endif
#endif
inline static void