The underscore prefixed name is in the implementation reserved namespace, which means the compiler can define it itself. This is common to both MSVC and MingW. The WIN32 name is in a user namespace, and is defined within <windows.h> for MSVC. The MingW compiler can also auto define WIN32, but only when not passing the -std=c++?? option, which we do pass.
The underscore prefixed name is in the implementation reserved namespace, which means the compiler can define it itself. This is common to both MSVC and MingW. The
WIN32
name is in a user namespace, and is defined within<windows.h>
for MSVC. The MingW compiler can also auto defineWIN32
, but only when not passing the-std=c++??
option, which we do pass.Reference: https://github.com/lairworks/nas2d-core/pull/1088#issuecomment-1509935962