diff options
author | Andrew Dunstan | 2025-04-07 15:01:15 +0000 |
---|---|---|
committer | Andrew Dunstan | 2025-04-07 15:01:15 +0000 |
commit | 8f5e419484c3efb613d971ec25b9bf344db3d0b0 (patch) | |
tree | 24c7b1a39df1b583e834cf9d45bcafd2d1952169 /src | |
parent | 8ce79483dc47df11159f506cf51bacec9f874055 (diff) |
Revert "Use workaround of __builtin_setjmp only on MINGW on MSVCRT"
This reverts commit c313fa4602defe1be947370ab5b217ca163a1e3c.
This is found to cause issues on x86_64 Windows even when using UCRT.
Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src')
-rw-r--r-- | src/include/c.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/include/c.h b/src/include/c.h index 94697aab428..8cdc16a0f4a 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -1326,19 +1326,19 @@ extern int fdatasync(int fildes); /* * When there is no sigsetjmp, its functionality is provided by plain * setjmp. We now support the case only on Windows. However, it seems - * that MinGW-64 has some longstanding issues in its setjmp support when - * building with MSVCRT, so on that toolchain we cheat and use gcc's builtins. + * that MinGW-64 has some longstanding issues in its setjmp support, + * so on that toolchain we cheat and use gcc's builtins. */ #ifdef WIN32 -#if defined(__MINGW64__) && !defined(_UCRT) +#ifdef __MINGW64__ typedef intptr_t sigjmp_buf[5]; #define sigsetjmp(x,y) __builtin_setjmp(x) #define siglongjmp __builtin_longjmp -#else /* !defined(__MINGW64__) || defined(_UCRT) */ +#else /* !__MINGW64__ */ #define sigjmp_buf jmp_buf #define sigsetjmp(x,y) setjmp(x) #define siglongjmp longjmp -#endif /* defined(__MINGW64__) && !defined(_UCRT) */ +#endif /* __MINGW64__ */ #endif /* WIN32 */ /* /port compatibility functions */ |