在 2025-7-7 20:52, Luca Bacci 写道:
Question: should I really define the macros conditionally on __STDC_VERSION__?
I suspect not. But the value of `math_errhandling` should be subject to GCC command-line options, like this: #if defined __FAST_MATH__ /* no error handling. */ # define math_errhandling 0 #elif defined __NO_MATH_ERRNO__ /* errno is not used; only exceptions. */ # define math_errhandling MATH_ERREXCEPT #else # define math_errhandling (MATH_ERRNO | MATH_ERREXCEPT) #endif It's awkward that these macros are documented in different manuals. Anyway, thank goodness, they are. [1] https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-ffast-math [2] https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html -- Best regards, LIU Hao
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public