These three lines will help you with detection, first we or most of the predefined windows hints together into one OS_WIN macro definition:
#if defined(_WIN32) || defined(WIN32) || defined(__CYGWIN__) || defined(__MINGW32__) || defined(__BORLANDC__)
#define OS_WIN
#endif
Then you can check for it using the preprocessor ifdef:
#ifdef OS_WIN
//Windows specific stuff
#else
//Normal stuff
#endif