Skip to content
Tcl Source Code Artifact [d7a3e4d980]
Login

Artifact [d7a3e4d980]

Artifact d7a3e4d98025e0893b5055d7f09541035d30b21a:

Ticket change [d7a3e4d980] - Ticket [442178ffffffffff|442178ffff] <i>Cygwin TCHAR in tclPlatDecls.h fix</i> status still Open with 4 other changes by mdejong on 2001-07-18 07:43:52.
D 2001-07-18T07:43:52
J icomment Logged\sIn:\sYES\s\nuser_id=90858\n\nI\slooked\sat\sthe\spatch,\sbut\sI\sstill\sdon't\sunderstand\swhat\nthat\s"elif\s!defined(_INC_TCHAR)"\sbit\sis\sfor.\sThe\sMSVC\ninclude\sfile\schecks\sto\ssee\sif\s_INC_TCHAR\sis\sdefined\nso\sthere\sis\sno\sdanger\sof\sincluding\stchar.h\stwice:\n\n%\scat\st3.c\n#include\s<tchar.h>\n#include\s<tchar.h>\n\nint\smain()\s{}\n\n%\scl\s-c\st3.c\n\nWhat\sis\sup\swith\sthat?\n\nWhy\snot\sjust\sdo\sthis:\n\n#if\sdefined(__WIN32__)\n#\s\s\sif\sdefined(__CYGWIN__)\n#\s\s\s\s\sdefine\sWIN32_LEAN_AND_MEAN\n#\s\s\s\s\sinclude\s<windows.h>\n#\s\s\s\s\sundef\s\sWIN32_LEAN_AND_MEAN\n#\s\s\selse\n#\s\s\s\s\sinclude\s<tchar.h>\n#\s\s\sendif\n#endif\n\nOr,\sif\sit\sdoes\snot\smatter,\scould\swe\sjust\sdo\sthis?\n\n#ifdef\s__WIN32__\n#\s\sdefine\sWIN32_LEAN_AND_MEAN\n#\s\sinclude\s<windows.h>\n#\s\sundef\s\sWIN32_LEAN_AND_MEAN\n#endif\n\n
J login mdejong
J mimetype text/plain
J username mdejong
K 442178ffffffffffffffffffffffffffffffffff
U mdejong
Z a9c5809a8b7ed52c0e92aeccc6153a87