Documentation concerning platform-specific macros in Linux/POSIX
- by Nubok
When compiling a C/C++ program under Windows using Visual Studio (or a compiler that tries to be compatible) there is a predefined macro _WIN32 (Source: http://msdn.microsoft.com/en-us/library/b0084kay.aspx) that you can use for platform-specific #ifdef-s.
What I am looking for is an analogon under Linux: a macro which tells me that I am compiling…