Something like:
#ifdef WINDOWS
// do stuff
#endif
The _WIN32 is always defined on Windows platform, checkout the predefined macros.
This is the most complete table I know of. https://sourceforge.net/p/predef/wiki/Compilers/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With