File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 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);
13261326/*
13271327 * When there is no sigsetjmp, its functionality is provided by plain
13281328 * 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 has some longstanding issues in its setjmp support when
1330+ * building with MSVCRT, so on that toolchain we cheat and use gcc's builtins.
13311331 */
13321332#ifdef WIN32
1333- #ifdef __MINGW64__
1333+ #if defined( __MINGW64__ ) && !defined( _UCRT )
13341334typedef intptr_t sigjmp_buf [5 ];
13351335#define sigsetjmp (x ,y ) __builtin_setjmp(x)
13361336#define siglongjmp __builtin_longjmp
1337- #else /* !__MINGW64__ */
1337+ #else /* !defined( __MINGW64__) || defined(_UCRT) */
13381338#define sigjmp_buf jmp_buf
13391339#define sigsetjmp (x ,y ) setjmp(x)
13401340#define siglongjmp longjmp
1341- #endif /* __MINGW64__ */
1341+ #endif /* defined( __MINGW64__) && !defined(_UCRT) */
13421342#endif /* WIN32 */
13431343
13441344/* /port compatibility functions */
You can’t perform that action at this time.
0 commit comments