summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2012-03-06 20:53:12 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2012-03-06 20:53:12 (GMT)
commitcc0b09c108cac3939bc93cecbd0de3fd29861923 (patch)
treec4e903bd6d0a6c11496333b7b0f718ee9efbdf80
parent915cb2bff24fb2309d96ee9a0ce858084ae480e6 (diff)
parent6baa0864bcd380dd230b3a48850c6b331d118713 (diff)
downloadtcl-cc0b09c108cac3939bc93cecbd0de3fd29861923.zip
tcl-cc0b09c108cac3939bc93cecbd0de3fd29861923.tar.gz
tcl-cc0b09c108cac3939bc93cecbd0de3fd29861923.tar.bz2
Compatibility with older Visual Studio versions
-rw-r--r--ChangeLog4
-rw-r--r--win/tclWinPort.h6
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6206893..a3c87ad 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-03-06 Jan Nijtmans <nijtmans@users.sf.net>
+
+ * win/tclWinPort.h: Compatibility with older Visual Studio versions.
+
2012-03-04 Jan Nijtmans <nijtmans@users.sf.net>
* generic/tclLoad.c: Patch from the cygwin folks
diff --git a/win/tclWinPort.h b/win/tclWinPort.h
index ee29a1a..d1b8227 100644
--- a/win/tclWinPort.h
+++ b/win/tclWinPort.h
@@ -19,6 +19,12 @@
# define _USE_32BIT_TIME_T
#endif
+/* Compatibility to older visual studio / windows platform SDK */
+#if !defined(MAXULONG_PTR)
+typedef DWORD DWORD_PTR;
+typedef DWORD_PTR * PDWORD_PTR;
+#endif
+
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#undef WIN32_LEAN_AND_MEAN