lairworks / nas2d-core

NAS2D is an open source, object oriented 2D game development framework written in portable C++.
http://nas2d.lairworks.com
zlib License
10 stars 5 forks source link

Update Windows platform detect to use `_WIN32` #1089

Closed DanRStevens closed 1 year ago

DanRStevens commented 1 year ago

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.

Reference: https://github.com/lairworks/nas2d-core/pull/1088#issuecomment-1509935962