mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-08-17 09:21:41 +08:00
Define _WINSOCKAPI_ before Windows SDK headers
This commit is contained in:
@@ -7,6 +7,7 @@ DEVELOPER: Zihan Chen(vczh)
|
||||
/***********************************************************************
|
||||
.\WINNATIVEDPIAWARENESS.CPP
|
||||
***********************************************************************/
|
||||
#define _WINSOCKAPI_
|
||||
#include <ShellScalingApi.h>
|
||||
|
||||
#pragma comment(lib, "Shcore.lib")
|
||||
@@ -110,6 +111,7 @@ namespace vl
|
||||
/***********************************************************************
|
||||
.\WINNATIVEWINDOW.CPP
|
||||
***********************************************************************/
|
||||
#define _WINSOCKAPI_
|
||||
#include <CommCtrl.h>
|
||||
|
||||
#pragma comment(lib, "Imm32.lib")
|
||||
@@ -13255,6 +13257,7 @@ WindowsClipboardService
|
||||
/***********************************************************************
|
||||
.\SERVICESIMPL\WINDOWSDIALOGSERVICE.CPP
|
||||
***********************************************************************/
|
||||
#define _WINSOCKAPI_
|
||||
#include <Vfw.h>
|
||||
|
||||
#pragma comment(lib, "Vfw32.lib")
|
||||
@@ -13533,6 +13536,7 @@ WindowsDialogService
|
||||
/***********************************************************************
|
||||
.\SERVICESIMPL\WINDOWSIMAGESERVICE.CPP
|
||||
***********************************************************************/
|
||||
#define _WINSOCKAPI_
|
||||
#include <Shlwapi.h>
|
||||
|
||||
#pragma comment(lib, "WindowsCodecs.lib")
|
||||
@@ -14512,6 +14516,7 @@ WindowsResourceService
|
||||
/***********************************************************************
|
||||
.\SERVICESIMPL\WINDOWSSCREENSERVICE.CPP
|
||||
***********************************************************************/
|
||||
#define _WINSOCKAPI_
|
||||
|
||||
namespace vl
|
||||
{
|
||||
|
||||
@@ -169,6 +169,7 @@ Interfaces:
|
||||
#ifndef VCZH_PRESENTATION_WINDOWS_GDI_WINDIRECT2DAPPLICATION
|
||||
#define VCZH_PRESENTATION_WINDOWS_GDI_WINDIRECT2DAPPLICATION
|
||||
|
||||
#define _WINSOCKAPI_
|
||||
#include <d2d1_1.h>
|
||||
#include <dwrite_1.h>
|
||||
#include <d3d11_1.h>
|
||||
@@ -236,6 +237,7 @@ Interfaces:
|
||||
#ifndef VCZH_PRESENTATION_ELEMENTS_GUIGRAPHICSWINDOWSDIRECT2D
|
||||
#define VCZH_PRESENTATION_ELEMENTS_GUIGRAPHICSWINDOWSDIRECT2D
|
||||
|
||||
#define _WINSOCKAPI_
|
||||
#include <d2d1effects.h>
|
||||
#include <wincodec.h>
|
||||
|
||||
@@ -1192,6 +1194,7 @@ Interfaces:
|
||||
#ifndef VCZH_PRESENTATION_ELEMENTS_GUIGRAPHICSUNISCRIBE
|
||||
#define VCZH_PRESENTATION_ELEMENTS_GUIGRAPHICSUNISCRIBE
|
||||
|
||||
#define _WINSOCKAPI_
|
||||
#include <usp10.h>
|
||||
|
||||
namespace vl
|
||||
@@ -1540,6 +1543,7 @@ Interfaces:
|
||||
#ifndef VCZH_PRESENTATION_ELEMENTS_GUIGRAPHICSWINDOWSGDI
|
||||
#define VCZH_PRESENTATION_ELEMENTS_GUIGRAPHICSWINDOWSGDI
|
||||
|
||||
#define _WINSOCKAPI_
|
||||
#include <MLang.h>
|
||||
|
||||
namespace vl
|
||||
@@ -1966,6 +1970,7 @@ Interfaces:
|
||||
#ifndef VCZH_PRESENTATION_WINDOWS_SERVICESIMPL_WINDOWSDIALOGSERVICE
|
||||
#define VCZH_PRESENTATION_WINDOWS_SERVICESIMPL_WINDOWSDIALOGSERVICE
|
||||
|
||||
#define _WINSOCKAPI_
|
||||
#include <commdlg.h>
|
||||
|
||||
namespace vl
|
||||
@@ -2009,6 +2014,7 @@ Interfaces:
|
||||
#ifndef VCZH_PRESENTATION_WINDOWS_SERVICESIMPL_WINDOWSIMAGESERIVCE
|
||||
#define VCZH_PRESENTATION_WINDOWS_SERVICESIMPL_WINDOWSIMAGESERIVCE
|
||||
|
||||
#define _WINSOCKAPI_
|
||||
|
||||
namespace vl
|
||||
{
|
||||
|
||||
@@ -12,6 +12,7 @@ Author: Zihan Chen (vczh)
|
||||
Licensed under https://github.com/vczh-libraries/License
|
||||
***********************************************************************/
|
||||
|
||||
#define _WINSOCKAPI_
|
||||
#include <Windows.h>
|
||||
|
||||
#ifndef VCZH_MSVC
|
||||
@@ -100,6 +101,7 @@ Licensed under https://github.com/vczh-libraries/License
|
||||
***********************************************************************/
|
||||
|
||||
#include <time.h>
|
||||
#define _WINSOCKAPI_
|
||||
|
||||
#ifndef VCZH_MSVC
|
||||
static_assert(false, "Do not build this file for non-Windows applications.");
|
||||
@@ -250,6 +252,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.");
|
||||
@@ -281,6 +284,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.");
|
||||
|
||||
@@ -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.");
|
||||
|
||||
@@ -21,6 +21,7 @@ Interfaces:
|
||||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
#define _WINSOCKAPI_
|
||||
#include <windows.h>
|
||||
#include <http.h>
|
||||
#define RPC_USE_NATIVE_WCHAR
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#define GAC_HEADER_USE_NAMESPACE
|
||||
#include "UI/Source/Demo.h"
|
||||
#ifdef VCZH_MSVC
|
||||
#define _WINSOCKAPI_
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#define GAC_HEADER_USE_NAMESPACE
|
||||
#include <GacUI.h>
|
||||
#include <Skins\DarkSkin\DarkSkin.h>
|
||||
#define _WINSOCKAPI_
|
||||
#include <Windows.h>
|
||||
|
||||
class DefaultSkinPlugin : public Object, public IGuiPlugin
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#define GAC_HEADER_USE_NAMESPACE
|
||||
#include <GacUI.h>
|
||||
#include <Skins\DarkSkin\DarkSkin.h>
|
||||
#define _WINSOCKAPI_
|
||||
#include <Windows.h>
|
||||
|
||||
class DefaultSkinPlugin : public Object, public IGuiPlugin
|
||||
|
||||
Reference in New Issue
Block a user