File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1326,19 +1326,19 @@ extern int fdatasync(int fildes);
1326
1326
/*
1327
1327
* When there is no sigsetjmp, its functionality is provided by plain
1328
1328
* setjmp. We now support the case only on Windows. However, it seems
1329
- * that MinGW-64 has some longstanding issues in its setjmp support,
1330
- * so on that toolchain we cheat and use gcc's builtins.
1329
+ * that MinGW-64 on x86_64 has some longstanding issues in its setjmp
1330
+ * support, so on that toolchain we cheat and use gcc's builtins.
1331
1331
*/
1332
1332
#ifdef WIN32
1333
- #ifdef __MINGW64__
1333
+ #if defined( __MINGW64__ ) && !defined( _UCRT )
1334
1334
typedef intptr_t sigjmp_buf [5 ];
1335
1335
#define sigsetjmp (x ,y ) __builtin_setjmp(x)
1336
1336
#define siglongjmp __builtin_longjmp
1337
- #else /* !__MINGW64__ */
1337
+ #else /* !defined( __MINGW64__) || defined(_UCRT) */
1338
1338
#define sigjmp_buf jmp_buf
1339
1339
#define sigsetjmp (x ,y ) setjmp(x)
1340
1340
#define siglongjmp longjmp
1341
- #endif /* __MINGW64__ */
1341
+ #endif /* defined( __MINGW64__) && !defined(_UCRT) */
1342
1342
#endif /* WIN32 */
1343
1343
1344
1344
/* /port compatibility functions */
You can’t perform that action at this time.
0 commit comments