From 93121d99c9f6e14dbc45987e3fc6b1107daba4a5 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Sat, 8 May 2010 17:41:49 +0000 Subject: * io.c (nogvl_copy_stream_sendfile): mixed decls not allowed. * include/ruby/ruby.h (rb_intern): C90 needs nonempty macro arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/ruby.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index a9fd974614..38edfb3965 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -1078,8 +1078,8 @@ VALUE rb_id2str(ID); /* __builtin_constant_p and statement expression is available * since gcc-2.7.2.3 at least. */ #define rb_intern(str) \ - (__builtin_constant_p(str) ? \ - __extension__ (CONST_ID_CACHE(/**/, str)) : \ + (__builtin_constant_p(str) ? + __extension__ (CONST_ID_CACHE((ID), str)) : \ rb_intern(str)) #define rb_intern_const(str) \ (__builtin_constant_p(str) ? \ -- cgit v1.2.3