Fix for compilation under Cygwin/Mingw32
Closed / Fixed827915ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2003-10-22 01:03:57
Note: This patch fixes bug 822528
tclCmdAH.c doesn't compile under Cygwin/Mingw32
on NT-like systems (it compiles fine on Win98, but not
on WinXP). The problem is a collision between the enum
FILE_EXISTS and a define in 'winnt.h'.
I fixed the problem by prefixing all FILE_ enumerated
values with TCL (ie FILE_EXISTS becomes
TCL_FILE_EXISTS).
The enumerated values FILE_* are only used within
tclCmdAH.c, so this is safe...
A patch is attached...
dkfplain2003-10-22 15:31:07
Logged In: YES user_id=79902 Didn't accept exactly this patch since I prefer FCMD_ as the prefix since TCL_FILE_ would indicate to the casual reader that the symbol was somehow public (which it isn't.) And FCMD_ is the same length as FILE_ (which is good too!)
mballanceplain2003-10-22 19:22:48
Logged In: YES
user_id=189914
Shall I re-submit the patch with FCMD_ prefix? Or, have
you accepted the spirit of the patch and will apply the
necessary changes?
Log in (anonymous is fine) to add a comment.