From aeb285c6677ebb1d940d2a4d8e6992697ed263c8 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 5 Jun 2021 09:47:52 +1000 Subject: Bug [#2259]. Fix gcc link-time-optimization compilation. --- win32/HanjaDic.cxx | 2 ++ win32/PlatWin.cxx | 1 + win32/ScintillaWin.cxx | 1 + 3 files changed, 4 insertions(+) (limited to 'win32') diff --git a/win32/HanjaDic.cxx b/win32/HanjaDic.cxx index 828641400..cf598d64d 100644 --- a/win32/HanjaDic.cxx +++ b/win32/HanjaDic.cxx @@ -9,7 +9,9 @@ #include #include +#define WIN32_LEAN_AND_MEAN 1 #include +#include #include "UniConversion.h" #include "HanjaDic.h" diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index f8bd7f163..ae0161f84 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -31,6 +31,7 @@ #define _WIN32_WINNT 0x0500 #undef WINVER #define WINVER 0x0500 +#define WIN32_LEAN_AND_MEAN 1 #include #include #include diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 187feac9b..4c9109699 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -34,6 +34,7 @@ #define _WIN32_WINNT 0x0500 #undef WINVER #define WINVER 0x0500 +#define WIN32_LEAN_AND_MEAN 1 #include #include #include -- cgit v1.2.3