]> Creatis software - clitk.git/commitdiff
Fixed Windows incompatible unistd includes
authorSimon Rit <simon.rit@creatis.insa-lyon.fr>
Mon, 7 May 2012 10:34:57 +0000 (12:34 +0200)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Mon, 7 May 2012 10:34:57 +0000 (12:34 +0200)
common/clitkMemoryUsage.cxx
common/clitkXdrImageIOWriter.cxx

index c0b78ce4ddee203a40a0e216a1ffca69d80d0af9..e2a095dab5e080dae4e058b2517be8233c450a45 100644 (file)
@@ -19,7 +19,9 @@
 // clitk include
 #include "clitkCommon.h"
 #include "clitkMemoryUsage.h"
-#include <unistd.h>
+#ifndef _WIN32
+#  include <unistd.h>
+#endif
 
 void clitk::PrintMemory(bool verbose, std::string s) 
 {
index 1e826db7d6ab07b49142085d84d2ce6180069fba..af50b0ea0dfe3399c3eec82424f810c1dc2f9e5f 100644 (file)
@@ -97,7 +97,9 @@ void clitk::XdrImageIO::Write(const void* buffer)
 #include <math.h>
 #include <stdlib.h>
 #include <limits.h>
-#include <unistd.h>
+#ifndef _WIN32
+#  include <unistd.h>
+#endif
 #if !defined(unix) && !defined(__APPLE__)
 #include <io.h>
 #endif