Skip to content

Commit a4fb64f

Browse files
committed
fix(Windows): Define minimum Windows version and include necessary headers
- Added a check to define _WIN32_WINNT for Windows 10 or later. - Included winsock2.h and ws2tcpip.h headers for network functionality.
1 parent 9d4a804 commit a4fb64f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/windows/platformquirks_windows.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
*/
55

66
#include "../platformquirks.h"
7+
#ifndef _WIN32_WINNT
8+
#define _WIN32_WINNT 0x0A00 // Windows 10 or later
9+
#endif
10+
#include <winsock2.h>
11+
#include <ws2tcpip.h>
712
#include <windows.h>
813
#include <wbemidl.h>
914
#include <oleauto.h>

0 commit comments

Comments
 (0)