mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Define HAVE_STMT_AND_DECL_IN_EXPR and use it [Bug #15293]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8bb7c992b8
commit
7405bbda27
2 changed files with 8 additions and 1 deletions
|
@ -730,6 +730,13 @@ test -z "${ac_env_CFLAGS_set}" -a -n "${cflags+set}" && eval CFLAGS="\"$cflags $
|
|||
test -z "${ac_env_CXXFLAGS_set}" -a -n "${cxxflags+set}" && eval CXXFLAGS="\"$cxxflags $ARCH_FLAG\""
|
||||
}
|
||||
|
||||
AC_PREPROC_IFELSE([AC_LANG_SOURCE([[
|
||||
int main(void) {
|
||||
return __extension__ ({ int a = 0; a; });
|
||||
}
|
||||
]])],
|
||||
[AC_DEFINE(HAVE_STMT_AND_DECL_IN_EXPR, 1)])
|
||||
|
||||
: "header and library section" && {
|
||||
AC_ARG_WITH(winnt-ver,
|
||||
AS_HELP_STRING([--with-winnt-ver=0xXXXX], [target Windows NT version (default to 0x0600)]),
|
||||
|
|
|
@ -1818,7 +1818,7 @@ VALUE rb_check_symbol(volatile VALUE *namep);
|
|||
do RUBY_CONST_ID_CACHE((var) =, (str)) while (0)
|
||||
#define CONST_ID_CACHE(result, str) RUBY_CONST_ID_CACHE(result, str)
|
||||
#define CONST_ID(var, str) RUBY_CONST_ID(var, str)
|
||||
#ifdef HAVE_BUILTIN___BUILTIN_CONSTANT_P
|
||||
#if defined(HAVE_BUILTIN___BUILTIN_CONSTANT_P) && defined(HAVE_STMT_AND_DECL_IN_EXPR)
|
||||
/* __builtin_constant_p and statement expression is available
|
||||
* since gcc-2.7.2.3 at least. */
|
||||
#define rb_intern(str) \
|
||||
|
|
Loading…
Reference in a new issue