Pre-defined C/C++ Compiler Macros
github.com
github.com
Buried in some code I wrote is this, because of compatibility nightmares:
#if defined(__WIN32__) || defined(_WIN32) || defined(_WINDOWS) || defined(WIN32)
$ grep -rl __GNUC_PATCHLEVEL__ $HOMEBREW_CELLAR/llvm/15.0.6/lib/libclang-cpp.so.15
/home/linuxbrew/.linuxbrew/Cellar/llvm/15.0.6/lib/libclang-cpp.so.15
I'm sorry for the noise _WIN16 Defined for 16-bit environments
_WIN32 Defined for both 32-bit and 64-bit environments
_WIN64 Defined for 64-bit environments