From a501d11b151dc0c42f5e2d0493a15b12a7ae4151 Mon Sep 17 00:00:00 2001 From: Xottab-DUTY Date: Sat, 25 Nov 2023 16:25:48 +0500 Subject: [PATCH] Windows: reduce the size of windows.h by excluding unneeded functionality --- src/Common/PlatformWindows.inl | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/src/Common/PlatformWindows.inl b/src/Common/PlatformWindows.inl index 13711f3480c..f23fac4c2a9 100644 --- a/src/Common/PlatformWindows.inl +++ b/src/Common/PlatformWindows.inl @@ -1,6 +1,5 @@ #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers -#define IDIRECTPLAY2_OR_GREATER // ? #ifndef _WIN32_WINNT // Request Windows 7 functionality @@ -8,22 +7,45 @@ #endif #define NOGDICAPMASKS -//#define NOSYSMETRICS +#define NOVIRTUALKEYCODES +//#define NOWINMESSAGES +//#define NOWINSTYLES +#define NOSYSMETRICS #define NOMENUS #define NOICONS #define NOKEYSTATES +#define NOSYSCOMMANDS +//#define NORASTEROPS +//#define NOSHOWWINDOW +#define NOATOM +#define NOCLIPBOARD +#define NOCOLOR +//#define NOCTLMGR #define NODRAWTEXT +//#define NOGDI +#define NOKERNEL +//#define NOUSER +//#define NONLS +//#define NOMB #define NOMEMMGR #define NOMETAFILE +#define NOMINMAX +//#define NOMSG +#define NOOPENFILE +#define NOSCROLL #define NOSERVICE +#define NOSOUND +//#define NOTEXTMETRIC +#define NOWH +#define NOWINOFFSETS #define NOCOMM +#define NOKANJI +#define NOCRYPT #define NOHELP #define NOPROFILER +#define NODEFERWINDOWPOS #define NOMCX - -#ifndef NOMINMAX -#define NOMINMAX -#endif +#define NOIME #define DOSWIN32 #define _WIN32_DCOM