C++ compiling on Windows and Linux: ifdef switch
use:
#ifdef __linux__ //linux code goes here #elif _WIN32 // windows code goes here #else #endif