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/re.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/re.h')
-rw-r--r-- | include/ruby/re.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/ruby/re.h b/include/ruby/re.h index c60ab96016..4039ba1800 100644 --- a/include/ruby/re.h +++ b/include/ruby/re.h @@ -24,6 +24,10 @@ extern "C" { #include "ruby/regex.h" +#if defined __GNUC__ && __GNUC__ >= 4 +#pragma GCC visibility push(default) +#endif + typedef struct re_pattern_buffer Regexp; struct rmatch_offset { @@ -55,6 +59,11 @@ VALUE rb_reg_regsub(VALUE, VALUE, struct re_registers *, VALUE); long rb_reg_adjust_startpos(VALUE, VALUE, long, int); void rb_match_busy(VALUE); VALUE rb_reg_quote(VALUE); +regex_t *rb_reg_prepare_re(VALUE re, VALUE str); + +#if defined __GNUC__ && __GNUC__ >= 4 +#pragma GCC visibility pop +#endif #if defined(__cplusplus) #if 0 |