mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-08-18 01:44:28 +08:00
Define _WINSOCKAPI_ before Windows SDK headers
This commit is contained in:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user