Tcl Source Code

Artifact [f794814bc9]
Login

Artifact f794814bc945d3f1e6fb848fb780344f5b583dff:

Attachment "ie_default.patch2" to ticket [525403ffff] added by mdejong 2002-03-07 09:04:11.
2002-03-06  Mo DeJong  <[email protected]>

	* win/tkWinX.c: Define _WIN32_IE as 0x0300
	before including commctrl.h so that we can
	access the InitCommonControlsEx API when
	building Tk with mingw.

Index: win/tkWinX.c
===================================================================
RCS file: /cvsroot/tktoolkit/tk/win/tkWinX.c,v
retrieving revision 1.18
diff -u -r1.18 tkWinX.c
--- win/tkWinX.c	25 Jan 2002 21:09:37 -0000	1.18
+++ win/tkWinX.c	7 Mar 2002 02:00:24 -0000
@@ -14,6 +14,17 @@
  */
 
 #include "tkWinInt.h"
+
+/*
+ * The w32api 1.1 package (included in Mingw 1.1) does not define _WIN32_IE
+ * by default. Define it here to gain access to the InitCommonControlsEx API
+ * in commctrl.h.
+ */
+
+#ifndef _WIN32_IE
+#define _WIN32_IE 0x0300
+#endif
+
 #include <commctrl.h>
 
 /*