From 5e0e7e6e8a5c67e28bfbd950c33d26b03ed60439 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 27 Mar 2019 14:48:03 +1100 Subject: Fix problem with MinGW which defines NOMINMAX itself. --- gtk/ScintillaGTK.cxx | 1 + gtk/ScintillaGTKAccessible.cxx | 1 + 2 files changed, 2 insertions(+) diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index d067843ea..228a369e9 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -31,6 +31,7 @@ #if defined(_WIN32) // On Win32 use windows.h to access clipboard (rectangular format) and systems parameters +#undef NOMINMAX #define NOMINMAX #include #endif diff --git a/gtk/ScintillaGTKAccessible.cxx b/gtk/ScintillaGTKAccessible.cxx index 89e929b87..375a00039 100644 --- a/gtk/ScintillaGTKAccessible.cxx +++ b/gtk/ScintillaGTKAccessible.cxx @@ -80,6 +80,7 @@ #if defined(_WIN32) // On Win32 use windows.h to access CLIPFORMAT +#undef NOMINMAX #define NOMINMAX #include #endif -- cgit v1.2.3