From: Brian D. <br...@de...> - 2008-04-05 04:10:37
|
NightStrike wrote: > Both. The canonical source is MSDN not gcc: http://msdn2.microsoft.com/en-us/library/aa384267.aspx http://msdn2.microsoft.com/en-us/library/b0084kay.aspx > $ cat > a.c > #ifdef _WIN32 > #warning _WIN32 > #endif > #ifdef _WIN64 > #warning _WIN64 > #endif > int main() {return 0;} > > $ x86_64-pc-mingw32-gcc a.c > a.c:2:2: warning: #warning _WIN32 > a.c:6:2: warning: #warning _WIN64 Or simply: x86_64-pc-mingw32-gcc -dM -E - </dev/null | grep _WIN Brian |