mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 09:41:15 +00:00
Fix warning "setjmp" redefined on Windows.
This commit is contained in:
parent
5826cb0eb4
commit
2be366e05d
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue