Define _WIN32_WINNT first

Some toolchains may define different default values.
This commit is contained in:
dearblue
2025-10-25 21:04:03 +09:00
parent bd3b5f87fb
commit e332b8e26e
+4 -4
View File
@@ -7,16 +7,16 @@
** Supported platforms: Windows, MinGW
*/
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0501 // need Windows XP or later
#endif
#include <mruby.h>
#include <mruby/string.h>
#include <mruby/class.h>
#include <mruby/error.h>
#include <mruby/presym.h>
#include "socket_hal.h"
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0501
#endif
#include <winsock2.h>
#include <ws2tcpip.h>
#include <windows.h>