From d3d7399a90f1f315baaf326c44188adbc202df35 Mon Sep 17 00:00:00 2001 From: Simon Rit Date: Mon, 7 May 2012 12:34:57 +0200 Subject: [PATCH] Fixed Windows incompatible unistd includes --- common/clitkMemoryUsage.cxx | 4 +++- common/clitkXdrImageIOWriter.cxx | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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 -- 2.47.1