diff options
| author | Neil <nyamatongwe@gmail.com> | 2019-03-27 07:41:01 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2019-03-27 07:41:01 +1100 |
| commit | b82f4686810d84b27f4ef5bf040a7cf242bc9984 (patch) | |
| tree | 162a9dad0605f8a90b69c2a12a1d1d599b3f58d9 /gtk/ScintillaGTKAccessible.cxx | |
| parent | a0841ccdf681a2b7fbcc45779191c844a1078507 (diff) | |
| download | scintilla-mirror-b82f4686810d84b27f4ef5bf040a7cf242bc9984.tar.gz | |
Add <algorithm> for std::min/max. Standardize on _WIN32 to gate Win32 features.
Protect from windows.h definition of min/max.
Diffstat (limited to 'gtk/ScintillaGTKAccessible.cxx')
| -rw-r--r-- | gtk/ScintillaGTKAccessible.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/ScintillaGTKAccessible.cxx b/gtk/ScintillaGTKAccessible.cxx index 44069e274..510db1945 100644 --- a/gtk/ScintillaGTKAccessible.cxx +++ b/gtk/ScintillaGTKAccessible.cxx @@ -78,7 +78,9 @@ # include <gtk/gtk-a11y.h> #endif -#if defined(__WIN32__) || defined(_MSC_VER) +#if defined(_WIN32) +// On Win32 use windows.h to access CLIPFORMAT +#define NOMINMAX #include <windows.h> #endif |
