]> SALOME platform Git repositories - plugins/hexablockplugin.git/commitdiff
Salome HOME
Patch for MacOS (from SALOME forum) SHAPER_2.7.0 V8_3_0a2 V8_3_0b1
authorvsr <vsr@opencascade.com>
Fri, 20 Jan 2017 13:03:50 +0000 (16:03 +0300)
committervsr <vsr@opencascade.com>
Fri, 20 Jan 2017 13:03:50 +0000 (16:03 +0300)
src/GUI/HEXABLOCKPluginGUI_HypothesisCreator.cxx

index 3e71319aef32dbe9ee8d458dbd946fd4df0a6c35..887f29279e9d3fff4935c0099ef75e99f56280e5 100755 (executable)
@@ -93,15 +93,15 @@ enum {
 
 namespace {
 
-#ifdef WIN32
+#if defined(WIN32)
 #include <windows.h>
-#else
+#elif !defined(__APPLE__)
 #include <sys/sysinfo.h>
 #endif
 
   int maxAvailableMemory()
   {
-#ifdef WIN32
+#if defined(WIN32)
     // See http://msdn.microsoft.com/en-us/library/aa366589.aspx
     MEMORYSTATUSEX statex;
     statex.dwLength = sizeof (statex);
@@ -113,7 +113,7 @@ namespace {
         statex.ullTotalVirtual / 1024 / 1024;
       return (int) ( 0.7 * totMB );
     }
-#else
+#elif !defined(__APPLE__)
     struct sysinfo si;
     int err = sysinfo( &si );
     if ( err == 0 ) {