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