mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Merge pull request #331 from qmfrederik/fixes/mingw-setjpm-clang
Win64: Only use `__builtin_setjmp`/`__builtin_longjmp` when compiling with GCC
This commit is contained in:
commit
0d9e456bef
1 changed files with 0 additions and 11 deletions
|
@ -54,17 +54,6 @@
|
|||
#include <setjmp.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#if defined(__WIN64__)
|
||||
/* This hack is to deal with the fact that currently (June 2016) the
|
||||
* 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
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue