Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Patch for MacOS (from SALOME forum)
[modules/smesh.git]
/
src
/
SMDS
/
SMDS_MemoryLimit.cxx
diff --git
a/src/SMDS/SMDS_MemoryLimit.cxx
b/src/SMDS/SMDS_MemoryLimit.cxx
index c254b50ba6234008ba8ab3cd04f71a5728380c57..3086a8f7b887cd3966e3702cfc2168dce071da57 100644
(file)
--- a/
src/SMDS/SMDS_MemoryLimit.cxx
+++ b/
src/SMDS/SMDS_MemoryLimit.cxx
@@
-25,7
+25,7
@@
// This is not done inside a function of SALOME because allocated memory is not always
// returned to the system. (PAL16631)
//
// This is not done inside a function of SALOME because allocated memory is not always
// returned to the system. (PAL16631)
//
-#if
ndef WIN32
+#if
!defined WIN32 && !defined __APPLE__
#include <sys/sysinfo.h>
#endif
#include <sys/sysinfo.h>
#endif
@@
-36,7
+36,7
@@
int main (int argc, char ** argv)
{
// To better understand what is going on here, consult bug [SALOME platform 0019911]
int main (int argc, char ** argv)
{
// To better understand what is going on here, consult bug [SALOME platform 0019911]
-#if
ndef WIN32
+#if
!defined WIN32 && !defined __APPLE__
struct sysinfo si;
int err = sysinfo( &si );
if ( err )
struct sysinfo si;
int err = sysinfo( &si );
if ( err )