Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2002-03-07
09:23 • Closed ticket [525403ffff]: Fix building of Tk with mingw 1.1 plus 7 other c... artifact: 2e0127f88d user: mdejong
09:04 • Ticket [525403ffff]: 4 changes artifact: 70bf2198ec user: mdejong
09:04 • Add attachment ie_default.patch2 to ticket [525403ffffffffff|525403ffff... artifact: 1bb217e66a user: mdejong
08:43 • Ticket [525403ffff] Fix building of Tk with mingw 1.1 status still Open with... artifact: ee1d254744 user: hobbs
08:34 • Ticket [525403ffff]: 4 changes artifact: 9ba901cb76 user: mdejong
06:44 • Ticket [525403ffff]: 4 changes artifact: 7faacfcaf2 user: hobbs
2002-03-06
15:20 • Add attachment ie_default.patch to ticket [525403ffff] artifact: 1c39adc0cd user: mdejong
15:20 • Ticket [525403ffff] Fix building of Tk with mingw 1.1 status still Open with... artifact: 441fb7effc user: mdejong
2002-03-04
14:33 • Ticket [525403ffff]: 4 changes artifact: 06367fccd6 user: mdejong
07:33 • New ticket [525403ffff]. artifact: 11183cfb5b user: mdejong

Fix building of Tk with mingw 1.1

Closed / Fixed525403ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2002-03-04 07:33:08
This patch should not need to go into the 8.4a4
release since Tcl does not yet build with mingw
1.1. If this patch looks good, give me the ok
and I can check it in after the a4 branch has
been created. It should not break the VC++ build
but I only tested it with mingw.
mdejongplain2002-03-04 14:33:08
File Added - 18772: ie_default.patch
mdejongplain2002-03-06 15:20:51
File Deleted - 18772: 



File Added - 18865: ie_default.patch
hobbsplain2002-03-07 06:44:14
Logged In: YES 
user_id=72656

does it not work to more simply do
   #ifndef _WIN32_IE
   #define _WIN32_IE 0x0300
   #endif

That seems like a lot of tcl.m4 magic to get one definition.
mdejongplain2002-03-07 08:34:25
Logged In: YES 
user_id=90858

Yes, that would also work. Autoconf's approach of
testing for problems and incompatibilities outside
the code is more complex, but I think it leads to
better code in the long run. The short snip of code
in the autoconf test shows exactly what the problem
is and where it applies. I am not saying you could
not add a comment, but code can sometimes be a better
description than a #define in a .c file. I have run
into other parts of Tcl that suffer in this area
(the Windows CHAR junk is simply a nightmare).

You make the call, a simple #define with a comment
or a larger autoconf test.
hobbsplain2002-03-07 08:43:17
Logged In: YES 
user_id=72656

I favor the comment right now.  In my view, this is more of 
a lack on mingw's part, and is something that can likely be 
removed in the future.  In fact, we (Tcl and Tk compilers 
using mingw) should be more diligent about making bug / 
feature request submissions to projects like mingw when we 
encounter these oddities.
mdejongplain2002-03-07 09:04:11
File Added - 18935: ie_default.patch2
mdejongplain2002-03-07 09:23:17
Logged In: YES 
user_id=90858

Added to CVS on 2002-03-06.
Log in (anonymous is fine) to add a comment.

Attachments: