-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 { defines {
"UNICODE", "UNICODE",
"_UNICODE", "_UNICODE",
"_WIN32_WINNT=0x0501", "_WIN32_WINNT=0x0600",
"WIN32_LEAN_AND_MEAN", "WIN32_LEAN_AND_MEAN",
"NOMINMAX", "NOMINMAX",
} }

View File

@ -3,14 +3,10 @@
defines { defines {
"OSD_WINDOWS", "OSD_WINDOWS",
"WIN32_LEAN_AND_MEAN",
"NOMINMAX",
}
configuration { "mingw* or vs*" }
defines {
"UNICODE", "UNICODE",
"_UNICODE" "_UNICODE"
"WIN32_LEAN_AND_MEAN",
"NOMINMAX",
} }
configuration { "vs*" } configuration { "vs*" }

View File

@ -18,18 +18,12 @@
#endif #endif
#if defined(_WIN32) && !defined(_WIN32_WINNT) #if defined(_WIN32) && !defined(_WIN32_WINNT)
#if defined(OSD_WINDOWS) #define _WIN32_WINNT 0x0600
#define _WIN32_WINNT 0x0501
#else
#define _WIN32_WINNT 0x0603
#endif
#endif #endif
#define ASIO_HEADER_ONLY #define ASIO_HEADER_ONLY
#define ASIO_STANDALONE #define ASIO_STANDALONE
#define ASIO_SEPARATE_COMPILATION #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> #include <asio.hpp>
#undef interface #undef interface