Disable the clearing of FPU exceptions on platforms that do not support it

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
Ian Bell
2014-12-18 16:03:27 -06:00
parent b4e8dad1f3
commit 71e59e3410

View File

@@ -23,7 +23,7 @@ void reset_fpu()
{
#if defined(_MSC_VER)
_clearfp(); // For MSVC, clear the floating point error flags
#else
#elif defined(FE_ALL_EXCEPT)
feclearexcept(FE_ALL_EXCEPT);
#endif
}