aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2013-03-26 22:30:43 +0200
committerEli Zaretskii2013-03-26 22:30:43 +0200
commitee0fb40e7c9797964dcf3f27a396993d6db25f3e (patch)
tree0dc89c996677be1568b73ac1d233141283e0ffca
parentbe3a31b22bb262f57954486ec40f5cbf07a9d828 (diff)
downloademacs-ee0fb40e7c9797964dcf3f27a396993d6db25f3e.tar.gz
emacs-ee0fb40e7c9797964dcf3f27a396993d6db25f3e.zip
Fix _setjmp calls for MinGW64.
nt/config.nt: Don't undefine HAVE__SETJMP here. nt/inc/ms-w32.h (HAVE__SETJMP) [_W64]: Undefine for MinGW64 here..
-rw-r--r--nt/ChangeLog4
-rw-r--r--nt/config.nt6
-rw-r--r--nt/inc/ms-w32.h4
3 files changed, 6 insertions, 8 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog
index 6f208f2a18f..f851004f605 100644
--- a/nt/ChangeLog
+++ b/nt/ChangeLog
@@ -1,9 +1,7 @@
12013-03-26 Eli Zaretskii <eliz@gnu.org> 12013-03-26 Eli Zaretskii <eliz@gnu.org>
2 2
3 * inc/ms-w32.h (USE_NO_MINGW_SETJMP_TWO_ARGS): Don't define. 3 * inc/ms-w32.h (USE_NO_MINGW_SETJMP_TWO_ARGS): Don't define.
4 4 (HAVE__SETJMP) [_W64]: Undefine for MinGW64.
5 * config.nt (HAVE__SETJMP) [!_W64]: Don't define for MinGW64, as
6 its _setjmp accepts 2 arguments.
7 5
8 * addsection.c (_ANONYMOUS_UNION, _ANONYMOUS_STRUCT): Do not 6 * addsection.c (_ANONYMOUS_UNION, _ANONYMOUS_STRUCT): Do not
9 define for MinGW64. 7 define for MinGW64.
diff --git a/nt/config.nt b/nt/config.nt
index 4f151fcad20..3d606258fc0 100644
--- a/nt/config.nt
+++ b/nt/config.nt
@@ -1143,12 +1143,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
1143/* Define to 1 if you have the `_ftime' function. */ 1143/* Define to 1 if you have the `_ftime' function. */
1144#undef HAVE__FTIME 1144#undef HAVE__FTIME
1145 1145
1146/* Define to 1 if _setjmp and _longjmp work. MinGW64 uses a 1146/* Define to 1 if _setjmp and _longjmp work. */
1147 2-argument _setjmp, and setjmp is a macro defined to supply the 2nd
1148 arg correctly, so don't use _setjmp directly in that case. */
1149#ifndef _W64
1150#define HAVE__SETJMP 1 1147#define HAVE__SETJMP 1
1151#endif
1152 1148
1153/* Define to 1 if you have the `__builtin_unwind_init' function. */ 1149/* Define to 1 if you have the `__builtin_unwind_init' function. */
1154#undef HAVE___BUILTIN_UNWIND_INIT 1150#undef HAVE___BUILTIN_UNWIND_INIT
diff --git a/nt/inc/ms-w32.h b/nt/inc/ms-w32.h
index fd18e8fd1da..a2111da6f3e 100644
--- a/nt/inc/ms-w32.h
+++ b/nt/inc/ms-w32.h
@@ -161,6 +161,10 @@ extern char *getenv ();
161/* Make sure 'struct timespec' and 'struct timezone' are defined. */ 161/* Make sure 'struct timespec' and 'struct timezone' are defined. */
162#include <sys/types.h> 162#include <sys/types.h>
163#include <time.h> 163#include <time.h>
164/* MinGW64 uses a 2-argument _setjmp, and setjmp is a macro defined to
165 supply the 2nd arg correctly, so don't use _setjmp directly in that
166 case. */
167#undef HAVE__SETJMP
164#endif 168#endif
165 169
166#ifdef _MSC_VER 170#ifdef _MSC_VER