Fix warning "setjmp" redefined on Windows.

This commit is contained in:
Frederik Seiffert 2020-05-23 15:31:54 +02:00
parent 5826cb0eb4
commit 2be366e05d

View file

@ -59,7 +59,9 @@
* implementation of longjmp in mingw-w64 sometimes crashes in msvcrt.dll * implementation of longjmp in mingw-w64 sometimes crashes in msvcrt.dll
* but the builtin version provided by gcc seems to work. * but the builtin version provided by gcc seems to work.
*/ */
#undef setjmp
#define setjmp(X) __builtin_setjmp(X) #define setjmp(X) __builtin_setjmp(X)
#undef longjmp
#define longjmp(X,Y) __builtin_longjmp(X,Y) #define longjmp(X,Y) __builtin_longjmp(X,Y)
#endif #endif