From: Simon Rit Date: Mon, 7 May 2012 10:34:57 +0000 (+0200) Subject: Fixed Windows incompatible unistd includes X-Git-Tag: v1.3.0~41^2^2 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=d3d7399a90f1f315baaf326c44188adbc202df35;p=clitk.git Fixed Windows incompatible unistd includes --- diff --git a/common/clitkMemoryUsage.cxx b/common/clitkMemoryUsage.cxx index c0b78ce..e2a095d 100644 --- a/common/clitkMemoryUsage.cxx +++ b/common/clitkMemoryUsage.cxx @@ -19,7 +19,9 @@ // clitk include #include "clitkCommon.h" #include "clitkMemoryUsage.h" -#include +#ifndef _WIN32 +# include +#endif void clitk::PrintMemory(bool verbose, std::string s) { diff --git a/common/clitkXdrImageIOWriter.cxx b/common/clitkXdrImageIOWriter.cxx index 1e826db..af50b0e 100644 --- a/common/clitkXdrImageIOWriter.cxx +++ b/common/clitkXdrImageIOWriter.cxx @@ -97,7 +97,9 @@ void clitk::XdrImageIO::Write(const void* buffer) #include #include #include -#include +#ifndef _WIN32 +# include +#endif #if !defined(unix) && !defined(__APPLE__) #include #endif