diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-21 21:38:25 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-21 21:38:25 +0000 |
commit | 0bd71ff35455d308c838c00a7e16fd093d36e4d7 (patch) | |
tree | a010959775d708f50770d5bbf72cf053c6c56d3e /include/ruby/encoding.h | |
parent | 6abe539cfc9b91178be7e1d75173165dcf6ca1bc (diff) | |
download | ruby-0bd71ff35455d308c838c00a7e16fd093d36e4d7.tar.gz |
* 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 'include/ruby/encoding.h')
-rw-r--r-- | include/ruby/encoding.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index 88f5e52101..2527427b1b 100644 --- a/include/ruby/encoding.h +++ b/include/ruby/encoding.h @@ -22,6 +22,10 @@ extern "C" { #include <stdarg.h> #include "ruby/oniguruma.h" +#if defined __GNUC__ && __GNUC__ >= 4 +#pragma GCC visibility push(default) +#endif + #define ENCODING_INLINE_MAX 1023 #define ENCODING_SHIFT (FL_USHIFT+10) #define ENCODING_MASK (((VALUE)ENCODING_INLINE_MAX)<<ENCODING_SHIFT) @@ -312,6 +316,10 @@ void rb_econv_binmode(rb_econv_t *ec); #define ECONV_AFTER_OUTPUT 0x00020000 /* end of flags for rb_econv_convert */ +#if defined __GNUC__ && __GNUC__ >= 4 +#pragma GCC visibility pop +#endif + #if defined(__cplusplus) #if 0 { /* satisfy cc-mode */ |