diff --git a/src/Amalgam/PlatformSpecific.cpp b/src/Amalgam/PlatformSpecific.cpp index b20f9d15..97eb87df 100644 --- a/src/Amalgam/PlatformSpecific.cpp +++ b/src/Amalgam/PlatformSpecific.cpp @@ -7,12 +7,24 @@ #include #include #include +#include #include #include #include #include #include +//perform universal initialization +class PlatformSpecificStartup +{ +public: + PlatformSpecificStartup() + { + std::feclearexcept(FE_ALL_EXCEPT); + } +}; +PlatformSpecificStartup _platform_specific_startup; + #ifdef OS_WINDOWS // TODO 15993: disable std::wstring_convert deprecation warning: no replacement in C++17 so