aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-06-16 00:44:17 +0000
committernyamatongwe <devnull@localhost>2010-06-16 00:44:17 +0000
commita8f2ba09fa60babe912dbc32c585083c9699d7a2 (patch)
treec83d6408b3d2df89a04b10a63728001caa88810d
parent23120484520e9495c540f3e19cb2687e437fb31d (diff)
downloadscintilla-mirror-a8f2ba09fa60babe912dbc32c585083c9699d7a2.tar.gz
For compatibility with TDM MingW64, undefine _WIN32_WINNT before defining it.
-rw-r--r--win32/PlatWin.cxx3
-rw-r--r--win32/ScintillaWin.cxx1
2 files changed, 3 insertions, 1 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx
index 65e05f9db..44c2ba440 100644
--- a/win32/PlatWin.cxx
+++ b/win32/PlatWin.cxx
@@ -12,7 +12,8 @@
#include <stdio.h>
#include <time.h>
-#define _WIN32_WINNT 0x0400
+#undef _WIN32_WINNT
+#define _WIN32_WINNT 0x0500
#include <windows.h>
#include <commctrl.h>
#include <richedit.h>
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index 5fb6e5286..ce959f893 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -16,6 +16,7 @@
#include <string>
#include <vector>
+#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#include <windows.h>
#include <commctrl.h>