<i>_USE_32BIT_TIME_T wrong for 32bit __MINGW32__</i> status still Open with 4 other changes
by
.
D 2012-09-25T22:59:23
J icomment _USE_32BIT_TIME_T\swas\sdesigned\sas\san\safter\sthought\sto\sresolve\sa\slegacy\scode\scompatibility\sissue.\s\sIt\sshould\sonly\sbe\sdefined\sfor\sthose\sapplications\sthat\srequire\sa\stime_t\sstructure\sthat\sis\s32\sbits.\s\sBy\sdefault,\stime_t\sis\s64\sbits\sand\sonly\s64\sbits\stime_t\sstructure\sis\sprovided\sby\sthe\sdefault\sruntime.\n\nSo\sif\syou\sdefine\s_USE_32BIT_TIME_T\sin\syour\scode\syou\sneed\sto\sprovide\sa\slibrary\sthat\ssupports\sthe\sfunctions\ssomething\slike\s-lmsvcr80\sbut\sthen\sthe\suser\smust\sbe\saware\sthat\smsvcr80.dll\sis\srequired\sand\sit\smight\snot\sbe\ssince\sit\sisn't\ssupplied\sby\sdefault.\n\nThe\schanges\sI've\smade\sto\sthe\srepository\scode\sisn't\sa\sregression\sthe\sexisting\scode\swas\sregressed\salready.\s\sThe\sproject\sspecified\s_USE_32BIT_TIME_T\sbut\sit\swas\spreviously\snot\sused\sproperly.\s\sWith\smy\schanges\sthe\sproject\sspecifying\s_USE_32BIT_TIME_T\sgive\sthe\sappropriate\sdeclarations\sand\smust\salso\sspecify\sa\slibrary\sduring\sthe\slink\sthat\scontains\sthose\sfunctions.\s\sHowever,\sthe\slinked\sapplication\smight\snot\srun\sdue\sto\sdependencies\son\snon-standard\slibraries.\n\nWhile\smingw-w64\s64bit\scompiled\scode\swill\swork\ssince\s_USE_32BIT_TIME_T\sisn't\sdefined\sin\stclWinPort.h\sbecause\s_WIN64\sis\sdefined;\sthe\smingw-w64\s32bit\scompiled\scode\swill\sgive\sthe\ssame\slink\stime\serror\ssince\sthey\shave\sno\smeans\sto\sguard\sbased\son\sthe\sversion\sof\sMSVCRT.\s\sThe\snew\scode\sfor\sMinGW.org\s_USE_32BIT_TIME_T\sis\snow\smore\sinline\swith\sthat\sof\smingw-w64\scode.\n\nThe\sresolution\shere\sis\sto\sdefine\sHAVE_32BIT_TIME_T\swhen\s--with-32bit-time\sis\sspecified\sand\sone\sof\s-lmsvcr80,\s-lmsvcr80d,\s-lmsvcr90,\s-lmsvcr90d,\s-lmsvcr100,\s-lmsvcr100d,\s-lmsvcr110\sor\s-lmsvcr110d\sis\sfound\sand\sthe\sresulting\sbinary\sworks\sduring\sconfigure.\s\sThen\smodify\stclWinPort.h\sto\sfilter\sthe\sdefine\sfor\s_USE_32BIT_TIME_T\sbased\son\sHAVE_32BIT_TIME_T.\n\nSince\sa\s32bit\stime_t\sis\san\safter\sthought\sand\swas\sgiven\sto\shelp\sout\slegacy\scode\sand\ssince\s64bit\stime_t\sis\sthe\sdefault\sit\sshould\sbe\sup\sto\sthe\susers\sof\sthe\ssource\sto\shave\sit\senabled\sor\snot\sduring\sthe\sconfigure\sprocess\swith\sdisabled\sbeing\sthe\sdefault\sto\smatch\sthe\scompilers.\n
J login earnie
J mimetype text/plain
J username earnie
K 3571241fffffffffffffffffffffffffffffffff
U earnie
Z 9b027dd020e4653ca7a9bcd9ef9e22a2