mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
Only check FPU bits with MSVC compiler
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
// See also http://stackoverflow.com/questions/11685441/floating-point-error-when-calling-dll-function-from-vba/27336496#27336496
|
||||
void reset_fpu()
|
||||
{
|
||||
#if defined(WIN32)
|
||||
#if defined(_MSC_VER)
|
||||
_clearfp(); // For MSVC in excel, clear the floating point error flags
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user