summaryrefslogtreecommitdiff
path: root/transcode_data.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-21 21:38:25 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-21 21:38:25 +0000
commit0bd71ff35455d308c838c00a7e16fd093d36e4d7 (patch)
treea010959775d708f50770d5bbf72cf053c6c56d3e /transcode_data.h
parent6abe539cfc9b91178be7e1d75173165dcf6ca1bc (diff)
* configure.in (XCFLAGS): use -fvisibility=hidden if possible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'transcode_data.h')
-rw-r--r--transcode_data.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/transcode_data.h b/transcode_data.h
index d0f3d0f764..8e85ce6db4 100644
--- a/transcode_data.h
+++ b/transcode_data.h
@@ -14,6 +14,10 @@
#ifndef RUBY_TRANSCODE_DATA_H
#define RUBY_TRANSCODE_DATA_H 1
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility push(default)
+#endif
+
#define WORDINDEX_SHIFT_BITS 2
#define WORDINDEX2INFO(widx) ((widx) << WORDINDEX_SHIFT_BITS)
#define INFO2WORDINDEX(info) ((info) >> WORDINDEX_SHIFT_BITS)
@@ -106,4 +110,8 @@ struct rb_transcoder {
void rb_declare_transcoder(const char *enc1, const char *enc2, const char *lib);
void rb_register_transcoder(const rb_transcoder *);
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility pop
+#endif
+
#endif /* RUBY_TRANSCODE_DATA_H */