mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
hal-win-socket: guard _WIN32_WINNT definition to prevent redefinition
only define _WIN32_WINNT if not already defined. mingw headers may predefine this macro, causing redefinition warning. Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -14,7 +14,9 @@
|
||||
#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