Skip to content
Tcl Source Code Artifact [f83f640810]
Login

Artifact [f83f640810]

Artifact f83f6408108456e4009686fe646fea0dcca1cbb3:

Ticket change [f83f640810] - Ticket [3571241fffffffff|3571241fff] <i>_USE_32BIT_TIME_T wrong for 32bit __MINGW32__</i> status still Open with 4 other changes by twylite on 2012-09-25 23:12:31.
D 2012-09-25T23:12:31
J icomment "In\sversions\sof\sVisual\sC++\sand\sMicrosoft\sC/C++\sbefore\sVisual\sC++\s2005,\stime_t\swas\sa\slong\sint\s(32\sbits)\sand\shence\scould\snot\sbe\sused\sfor\sdates\spast\s3:14:07\sJanuary\s19,\s2038,\sUTC.\sIn\sVisual\sC++\s2005,\stime_t\sis\sequivalent\sto\s__time64_t\sby\sdefault,\sbut\sdefining\s_USE_32BIT_TIME_T\schanges\stime_t\sto\s__time32_t\sand\sforces\smany\stime\sfunctions\sto\scall\sversions\sthat\stake\sthe\s32-bit\stime_t."\s--\shttp://msdn.microsoft.com/en-us/library/w4ddyt9h(v=vs.80).aspx\n\nThis\smacro\sis\srequired\sto\sforce\stime_t\sto\s32-bits\s(as\sexpected\sby\sthe\sTcl\ssources\sin\sa\s32-bit\senvironment)\swhen\sthe\scompiler\sis\sMSVC2005\sor\slater.\s\sEarlier\sversions\sof\sthe\scompiler\sdon't\srecognise\sthe\smacro\sand\ssafely\signore\sit.\n\nWhat\syou\sare\ssaying\sis\sthat\sthe\sMinGW\sheaders\srespect\s_USE_32BIT_TIME_T,\sbut\sthe\slibraries\syou\slink\sagainst\sdon't.\s\sIn\sother\swords\syou\shave\sa\smismatch\sbetween\sthe\sheaders\sand\sthe\slibraries.\s\sThat\sis\sa\sproblem\sin\syour\sdevelopment\senvironment,\snot\swith\sTcl.\n\n"Since\sa\s32bit\stime_t\sis\san\safter\sthought\sand\swas\sgiven\sto\shelp\sout\slegacy\ncode\sand\ssince\s64bit\stime_t\sis\sthe\sdefault\sit\sshould\sbe\sup\sto\sthe\susers\sof\nthe\ssource\sto\shave\sit\senabled\sor\snot\sduring\sthe\sconfigure\sprocess\swith\ndisabled\sbeing\sthe\sdefault\sto\smatch\sthe\scompilers."\n\nThe\sneed\sfor\s_USE_32BIT_TIME_T\srelates\sto\sassumptions\sin\sthe\sTcl\ssources\sabout\stypecasting\sand\stime_t\sarithmetic\sin\sa\s32-bit\senvironment.\s\sThe\sTcl\sdevelopers\sdecide\sthat,\snot\sthe\sperson\scompiling\sthe\ssoftware.\n\n
J login twylite
J mimetype text/plain
J username twylite
K 3571241fffffffffffffffffffffffffffffffff
U twylite
Z 8e5770c55e9eb1001311fe76364bed57