On 31.03.2025 15:23, LIU Hao wrote:
These macros are to be used with `fesetenv()`, so they belong there.
Having these `selectany` variables in 'fenv.h' causes them to be
defined with
external linkage in every source file which includes 'fenv.h'. They
can also
be exported inappropriately from a DLL, which either is built with
`--export-all-symbols`, or does not contain explicit `dllexport` and
is not
built with a DEF file.
Signed-off-by: LIU Hao <lh_mo...@126.com>
---
mingw-w64-crt/misc/fesetenv.c | 16 ++++++++++++++++
mingw-w64-headers/crt/fenv.h | 6 +++---
2 files changed, 19 insertions(+), 3 deletions(-)
Looks good to me.
Thanks,
Jacek
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public