]> Creatis software - clitk.git/blobdiff - common/clitkXdrImageIOWriter.cxx
Fixed Windows incompatible unistd includes
[clitk.git] / common / clitkXdrImageIOWriter.cxx
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