mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Define _WIN32_WINNT first
Some toolchains may define different default values.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user