On Oct 27, 2009, at 3:14 PM, colet.patrice@free.fr wrote:
Selon Hans-Christoph Steiner hans@at.or.at:
Cygwin is not _WIN32, by the way. It is a POSIX-style API much
closer to GNU/Linux than Win32. MinGW is _WIN32 with as much POSIX/UNIX thrown in as possible.the compiler define both _WIN32 and UNIX preprocessor, so it's
troubling...maybe the solution is here?
My Cygwin gcc does not define _WIN32, trying buiding this:
#ifdef _WIN32 #error this is _WIN32 #else #error this is NOT _WIN32 #endif int main(void){return 0;}
Here's what I get:
pd@windowsxp-i386 /tmp $ gcc test.c test.c:4:2: #error this is NOT _WIN32
.hc
"Making boring techno music is really easy with modern tools," he
says, "but with live coding, boring techno is much harder." - Chris
McCormick