Hi all, I am trying to build the OpenJPEG library, that uses CMake to generate Makefiles, on MSYS with MinGW's gcc compiler.
Some files of the library include system-dependent headers depending on the host system: #ifdef WIN32 #include <windows.h> #else #include <sys/time.h> #include <sys/resource.h> #include <sys/times.h> #endif /* WIN32 */ However, the compilation of these files fails because the variable "WIN32" is (very strangely) not defined, so that gcc goes inside the "#else" statement and does not find the headers under the "sys" directory (which do not exist on windows). As I am compiling on a windows platform on MSYS, shouldn't I expect the variable "WIN32" to be defined? I tried the "MSYS" and "Unix" makefile generators, but none of them works. Thanks for your help, Florent _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake