+2004-06-07 Thong Nguyen <tim@veridicus.com>
+
+ * configure.in, jit/jit-insn.c: add "_setjmp" to the list of
+ names to try to work around the "setjmp" macro (needed for Win32).
+
2004-06-07 Rhys Weatherley <rweather@southern-storm.com.au>
* tools/gen-apply.c: gen-apply fixes for Alpha platforms.
AC_CHECK_FUNCS(acosl asinl atanl atan2l cosl coshl expl logl log10l powl)
AC_CHECK_FUNCS(sinl sinhl sqrtl tanl tanhl)
AC_CHECK_FUNCS(dlopen cygwin_conv_to_win32_path mmap munmap mprotect)
-AC_CHECK_FUNCS(sigsetjmp __sigsetjmp)
+AC_CHECK_FUNCS(sigsetjmp __sigsetjmp _setjmp)
AC_FUNC_ALLOCA
AC_OUTPUT([
return 0;
}
args[0] = jit_insn_address_of(func, func->builder->setjmp_value);
+
+#if defined(HAVE__SETJMP)
+ value = jit_insn_call_native
+ (func, "_setjmp", (void *)_setjmp, type, args, 1, JIT_CALL_NOTHROW);
+
+#else
value = jit_insn_call_native
(func, "setjmp", (void *)setjmp, type, args, 1, JIT_CALL_NOTHROW);
+#endif
+
jit_type_free(type);
if(!value)
{