Define _WINSOCKAPI_ before Windows SDK headers

This commit is contained in:
vczh
2026-06-05 09:03:50 -07:00
parent 63e46d3547
commit a8750a35ab
8 changed files with 23 additions and 0 deletions
+4
View File
@@ -12,6 +12,7 @@ Author: Zihan Chen (vczh)
Licensed under https://github.com/vczh-libraries/License
***********************************************************************/
#define _WINSOCKAPI_
#include <Windows.h>
#include <Shlwapi.h>
@@ -303,6 +304,7 @@ Author: Zihan Chen (vczh)
Licensed under https://github.com/vczh-libraries/License
***********************************************************************/
#define _WINSOCKAPI_
#ifndef VCZH_MSVC
static_assert(false, "Do not build this file for non-Windows applications.");
@@ -627,6 +629,7 @@ Author: Zihan Chen (vczh)
Licensed under https://github.com/vczh-libraries/License
***********************************************************************/
#define _WINSOCKAPI_
#ifndef VCZH_MSVC
static_assert(false, "Do not build this file for non-Windows applications.");
@@ -1472,6 +1475,7 @@ Author: Zihan Chen (vczh)
Licensed under https://github.com/vczh-libraries/License
***********************************************************************/
#define _WINSOCKAPI_
#ifndef VCZH_MSVC
static_assert(false, "Do not build this file for non-Windows applications.");