summaryrefslogtreecommitdiffstats
path: root/win/tclWinPort.h
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-09-14 08:53:49 (GMT)
committernijtmans <nijtmans>2010-09-14 08:53:49 (GMT)
commit63c9caabab37581d13e0ccacca5e07416efbdf6a (patch)
tree86535eb38513f38381aa21e5d9e8fc8aef9f2048 /win/tclWinPort.h
parent73dc0175825d1e4fed0a449380e4d8148c84397f (diff)
downloadtcl-63c9caabab37581d13e0ccacca5e07416efbdf6a.zip
tcl-63c9caabab37581d13e0ccacca5e07416efbdf6a.tar.gz
tcl-63c9caabab37581d13e0ccacca5e07416efbdf6a.tar.bz2
Allow all Win2000+ API entries in Tcl
Eliminate dynamical loading of advapi23 and kernal32 symbols.
Diffstat (limited to 'win/tclWinPort.h')
-rw-r--r--win/tclWinPort.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/win/tclWinPort.h b/win/tclWinPort.h
index 1acf980..669fceb 100644
--- a/win/tclWinPort.h
+++ b/win/tclWinPort.h
@@ -10,12 +10,25 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclWinPort.h,v 1.60 2010/09/09 14:30:20 nijtmans Exp $
+ * RCS: @(#) $Id: tclWinPort.h,v 1.61 2010/09/14 08:53:49 nijtmans Exp $
*/
#ifndef _TCLWINPORT
#define _TCLWINPORT
+/*
+ * We must specify the lower version we intend to support.
+ *
+ * WINVER = 0x0500 means Windows 2000 and above
+ */
+
+#ifndef WINVER
+# define WINVER 0x0500
+#endif
+#ifndef _WIN32_WINNT
+# define _WIN32_WINNT 0x0500
+#endif
+
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#undef WIN32_LEAN_AND_MEAN