I'm writing a cross-platform code, which should compile at linux, windows, Mac OS. On windows, I must support visual studio and mingw.
There are some pieces of platform-specific code, which I should place in #ifdef .. #endif
environment. For example, here I placed win32 specific code:
#ifdef WIN32
#include <windows.h>
#endif
But how do I recognize linux and mac OS? What are defines names (or etc.) I should use?