diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/intern.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h index fdd388792a..f109cf75ef 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -535,7 +535,7 @@ VALUE rb_str_buf_new2(const char*); VALUE rb_str_tmp_new(long); VALUE rb_usascii_str_new(const char*, long); VALUE rb_usascii_str_new2(const char*); -#if defined __GNUC__ && defined __OPTIMIZE__ && __OPTIMIZE__ +#if __GNUC__ >= 4 && defined __OPTIMIZE__ && __OPTIMIZE__ #define rb_str_new2(str) ({const char *_s = (str); rb_str_new(_s, strlen(_s));}) #define rb_tainted_str_new2(str) ({const char *_s = (str); rb_tainted_str_new(_s, strlen(_s));}) #define rb_usascii_str_new2(str) ({const char *_s = (str); rb_usascii_str_new(_s, strlen(_s));}) |