diff --git a/Headers/Foundation/NSException.h b/Headers/Foundation/NSException.h index 78ddc4210..8c11dafa2 100644 --- a/Headers/Foundation/NSException.h +++ b/Headers/Foundation/NSException.h @@ -59,7 +59,9 @@ * implementation of longjmp in mingw-w64 sometimes crashes in msvcrt.dll * but the builtin version provided by gcc seems to work. */ +#undef setjmp #define setjmp(X) __builtin_setjmp(X) +#undef longjmp #define longjmp(X,Y) __builtin_longjmp(X,Y) #endif