]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Fix for compilation with gcc 4.7
authorgdd <gdd>
Thu, 7 Jun 2012 11:26:29 +0000 (11:26 +0000)
committergdd <gdd>
Thu, 7 Jun 2012 11:26:29 +0000 (11:26 +0000)
src/MEDLoader/SauvMedConvertor.cxx
src/MEDLoader/Test/SauvLoaderTest.cxx

index 0345cb1803e037f41105a357fb5b1c360ea1c756..446627a1fd50a7a891925a4bc7dd12f253e0aa5f 100644 (file)
@@ -45,6 +45,7 @@
 
 #ifndef WNT
 #define HAS_XDR
+#include <unistd.h>
 #endif
 
 #ifdef HAS_XDR
index abed31512c68dd77d0258b86242ea9fd66a22a0f..5fe7c1849a5f9cd4df50e2e13d67fca04205d008 100644 (file)
@@ -26,7 +26,9 @@
 #include "MEDCouplingMemArray.hxx"
 
 #ifdef WNT
-#include <windows.h>
+# include <windows.h>
+#else
+# include <unistd.h>
 #endif
 
 #include <vector>