On Mon, 31 Mar 2025, Jacek Caban wrote:
On 31.03.2025 03:35, LIU Hao wrote:
The effect that `__mingw_fe_dfl_env` etc. are defined everywhere is
probably not good. Jacek, do you agree with this change? I can adjust the
patch if we agree on that.
Yes, I agree, but with Martin's comment addressed and x86-specific
declarations #ifdefed.
Sounds good to me too.
For the record, another issue with the current approach, which was brought
up on irc, is that these header-declared variables end up autoexported
from DLLs as well - which clearly isn't intended. (If it would only happen
whenever they're actually used, it wouldn't be too bad, but when it
happens for any translation unit that includes fenv.h, it's a bit
excessive.)
// Martin
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public