From: ageay Date: Thu, 5 Nov 2009 09:26:06 +0000 (+0000) Subject: Activate floating point exceptions. X-Git-Tag: V5_1_main_FINAL~288 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=46d902b29903d26ce2efce0a959e007ff3d58e77;p=tools%2Fmedcoupling.git Activate floating point exceptions. --- 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;