]> SALOME platform Git repositories - modules/yacs.git/blobdiff - src/yacsloader/pmml/BasicMainTest.hxx
Salome HOME
Patch for MacOS (from SALOME forum)
[modules/yacs.git] / src / yacsloader / pmml / BasicMainTest.hxx
index cf007a4b352f91bdf908847369123219ee4a15d8..26038678c1b4b4d4389fd5c74009a73b35c5b011 100755 (executable)
@@ -32,7 +32,7 @@
 #include <iostream>
 #include <fstream>
 
-#ifndef WIN32
+#if !defined WIN32 && !defined __APPLE__
 #include <fpu_control.h>
 #endif
 
@@ -45,7 +45,7 @@
 
 int main(int argc, char* argv[])
 {
-#ifndef WIN32
+#if !defined WIN32 && !defined __APPLE__
   fpu_control_t cw = _FPU_DEFAULT & ~(_FPU_MASK_IM | _FPU_MASK_ZM | _FPU_MASK_OM);
   _FPU_SETCW(cw);
 #endif
@@ -57,7 +57,7 @@ int main(int argc, char* argv[])
   controller.addListener( &result );        
 
   // ---  Add a listener that print dots as test run.
-#ifdef WIN32
+#if defined WIN32 || defined __APPLE__
   CPPUNIT_NS::TextTestProgressListener progress;
 #else
   CPPUNIT_NS::BriefTestProgressListener progress;