<i>Cygwin TCHAR in tclPlatDecls.h fix</i> status still Open with 4 other changes
by
.
D 2001-07-18T13:27:02
J icomment Logged\sIn:\sYES\s\nuser_id=90858\n\nHumm,\sthat\sis\san\sinteresting\spoint.\n\nIf\syou\slook\sat\sthe\stop\sof\sthe\stclWinPort.h\nfile,\syou\swill\sfind\sthe\sfollowing:\n\n#ifndef\s_TCLINT\n#\s\s\sinclude\s"tclInt.h"\n#endif\n\n#ifdef\sCHECK_UNICODE_CALLS\n\n#define\s_UNICODE\n#define\sUNICODE\n\n#define\s__TCHAR_DEFINED\ntypedef\sfloat\s*_TCHAR;\n\n#define\s_TCHAR_DEFINED\ntypedef\sfloat\s*TCHAR;\n\n#endif\n\nI\swas\sunder\sthe\simpression\sthat\sdefining\n_UNICODE\sand\sthen\spulling\sin\s<windows.h>\nwould\sdefine\sTCHAR\sas\swchar_t.\sIt\sseems\nodd\sthat\sit\sis\salready\stypedefed\sas\sa\nfloat*\shere.\sAny\sidea\swhat\sis\sgoing\son\nthere?\sIf\swe\spull\sin\s<windows.h>\sin\stclPlatDecls.h\nthen\sit\swill\snot\sbe\sdefined\sthe\ssame\sway\sas\nin\stclWinPort.h\sbecause\s_UNICODE\sis\snot\sdefined.\n\nAlso,\sit\sseems\slike\s<windows.h>\sis\sgetting\npulled\sin\smultiple\stimes,\seven\swhen\sit\sis\nnot\sneeded.\sFor\sexample,\sremoving\sthis\ninclude\sseems\sfine\ssince\s\s<tclPort.h>\nalready\spulls\s<tclWinPort.h>\swhich\sincludes\n<windows.h>.\sThere\sis\salso\sone\sin\stclAppInit.c,\nbut\sI\sam\snot\ssure\sabout\sthat\son.\n\n\ndiff\s-u\s-r1.12\stclWinReg.c\n---\swin/tclWinReg.c\s\s\s\s\s2000/06/13\s20:30:24\s\s\s\s\s1.12\n+++\swin/tclWinReg.c\s\s\s\s\s2001/07/18\s06:20:08\n@@\s-17,10\s+17,6\s@@\n\s#include\s<tclPort.h>\n\s#include\s<stdlib.h>\n\s\n-#define\sWIN32_LEAN_AND_MEAN\n-#include\s<windows.h>\n-#undef\sWIN32_LEAN_AND_MEAN\n-\n\n
J login mdejong
J mimetype text/plain
J username mdejong
K 442178ffffffffffffffffffffffffffffffffff
U mdejong
Z dac411784b624cd3cba4a55231d3fbb9