X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkXdrImageIOWriter.cxx;h=6eae6a595f529f45a76286370010b25710a30a61;hb=b7b8f2b040d1772c30c34653ee3fe0c27bc8fa71;hp=19567aaec1c58ac98895460d945fa6c5f71e0f77;hpb=d4a535bcb49c78c1bf4c5d61a8e8ea355627c714;p=clitk.git diff --git a/common/clitkXdrImageIOWriter.cxx b/common/clitkXdrImageIOWriter.cxx index 19567aa..6eae6a5 100644 --- a/common/clitkXdrImageIOWriter.cxx +++ b/common/clitkXdrImageIOWriter.cxx @@ -41,6 +41,7 @@ //From portdefs.h #if defined(unix) || defined(__APPLE__) #define O_BINARY 0 +//#define setmode(a,b) 0 // comment by ds #endif #ifndef __LARGE__ @@ -99,8 +100,8 @@ void clitk::XdrImageIO::Write(const void* buffer) #ifndef _WIN32 # include #endif -#if !defined(unix) && !defined(__APPLE__) -#include +#ifdef _WIN32 +# include #endif #include #include @@ -956,7 +957,7 @@ void clitk::XdrImageIO::WriteImage(const char* file, char* headerinfo, char* hea for (i=0; i