-osd/asio.h: Removed leftover C++03 support helpers.

-Set Win32 API version to 0x0600 for Windows SDL builds.
This commit is contained in:
Vas Crabb 2024-04-22 17:32:15 +10:00
parent 3ef9a7db09
commit 45b63ce946
3 changed files with 5 additions and 15 deletions

View file

@ -139,7 +139,7 @@ if _OPTIONS["targetos"]=="windows" then
defines {
"UNICODE",
"_UNICODE",
"_WIN32_WINNT=0x0501",
"_WIN32_WINNT=0x0600",
"WIN32_LEAN_AND_MEAN",
"NOMINMAX",
}

View file

@ -3,16 +3,12 @@
defines {
"OSD_WINDOWS",
"UNICODE",
"_UNICODE"
"WIN32_LEAN_AND_MEAN",
"NOMINMAX",
}
configuration { "mingw* or vs*" }
defines {
"UNICODE",
"_UNICODE"
}
configuration { "vs*" }
flags {
"Unicode",

View file

@ -18,18 +18,12 @@
#endif
#if defined(_WIN32) && !defined(_WIN32_WINNT)
#if defined(OSD_WINDOWS)
#define _WIN32_WINNT 0x0501
#else
#define _WIN32_WINNT 0x0603
#endif
#define _WIN32_WINNT 0x0600
#endif
#define ASIO_HEADER_ONLY
#define ASIO_STANDALONE
#define ASIO_SEPARATE_COMPILATION
#define ASIO_NOEXCEPT noexcept(true)
#define ASIO_NOEXCEPT_OR_NOTHROW noexcept(true)
#define ASIO_ERROR_CATEGORY_NOEXCEPT noexcept(true)
#include <asio.hpp>
#undef interface