From 3674064bf21deeefc095c4222a2c485503abeb8b Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 20 Jun 2016 15:22:04 +0000 Subject: RUBY_USE_SETJMPEX * configure.in, include/ruby/defines.h (RUBY_USE_SETJMPEX): include setjmpex.h only when using setjmpex() for RUBY_SETJMP. the header of mingw32 overrides setjmp() by setjmpex(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ configure.in | 1 + include/ruby/defines.h | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ea1fa8fc53..712009fae7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue Jun 21 00:22:02 2016 Nobuyoshi Nakada + + * configure.in, include/ruby/defines.h (RUBY_USE_SETJMPEX): + include setjmpex.h only when using setjmpex() for RUBY_SETJMP. + the header of mingw32 overrides setjmp() by setjmpex(). + Mon Jun 20 18:39:16 2016 Martin Duerst * test/ruby/test_in.rb: Skip test_open_fifo_does_not_block_other_threads diff --git a/configure.in b/configure.in index 063d839478..8232d548a0 100644 --- a/configure.in +++ b/configure.in @@ -2694,6 +2694,7 @@ AC_MSG_RESULT(${setjmp_prefix}setjmp${setjmp_suffix}${setjmp_cast:+\($setjmp_cas AC_DEFINE_UNQUOTED([RUBY_SETJMP(env)], [${setjmp_prefix}setjmp${setjmp_suffix}($setjmp_cast(env)${setjmp_sigmask+,0})]) AC_DEFINE_UNQUOTED([RUBY_LONGJMP(env,val)], [${setjmp_prefix}longjmp($setjmp_cast(env),val)]) AC_DEFINE_UNQUOTED(RUBY_JMP_BUF, ${setjmp_sigmask+${setjmp_prefix}}jmp_buf) +AS_IF([test x$setjmp_suffix = xex], [AC_DEFINE_UNQUOTED(RUBY_USE_SETJMPEX, 1)]) ]) # End of setjmp check. diff --git a/include/ruby/defines.h b/include/ruby/defines.h index bc0eda29f2..610fbf4417 100644 --- a/include/ruby/defines.h +++ b/include/ruby/defines.h @@ -130,7 +130,7 @@ extern "C" { # include #endif -#if defined HAVE_SETJMPEX_H && defined HAVE__SETJMPEX +#ifdef RUBY_USE_SETJMPEX #include #endif -- cgit v1.2.3