From 46d902b29903d26ce2efce0a959e007ff3d58e77 Mon Sep 17 00:00:00 2001 From: ageay Date: Thu, 5 Nov 2009 09:26:06 +0000 Subject: [PATCH] Activate floating point exceptions. --- src/INTERP_KERNELTest/BasicMainTest.hxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/INTERP_KERNELTest/BasicMainTest.hxx b/src/INTERP_KERNELTest/BasicMainTest.hxx index 8220e33a0..161dd2836 100644 --- a/src/INTERP_KERNELTest/BasicMainTest.hxx +++ b/src/INTERP_KERNELTest/BasicMainTest.hxx @@ -31,6 +31,10 @@ #include #include +#ifndef WIN32 +#include +#endif + // ============================================================================ /*! * Main program source for Unit Tests with cppunit package does not depend @@ -40,6 +44,10 @@ int main(int argc, char* argv[]) { +#ifndef WIN32 + fpu_control_t cw = _FPU_DEFAULT & ~(_FPU_MASK_IM | _FPU_MASK_ZM | _FPU_MASK_OM); + _FPU_SETCW(cw); +#endif // --- Create the event manager and test controller CPPUNIT_NS::TestResult controller; -- 2.39.2