I want to use Code::Blocks to compile cross-platform code, but I need to use the C++ preprocessor at times to swap between platform specific code.
One case is I need to detect when I'm in Windows and when I'm in *nix based systems. I always install Code::Blocks with the compiler that comes with it, so I need to know what macros are defined to detect when I'm in the Windows version or in the *nix version. I can't find the macros by Googling, so I thought I'd ask here.