.
D 2023-03-26T05:34:21.922
J icomment <blockquote>I\sthink\sthat\sTcl\s9.0\s-\sindeed\s-\sshould\senforce\s64-bit\stime_t.\s…\sSo,\sif\syou\swant\sto\sprovide\sa\spatch\sfor\syour\splatform\s(best\splace\swould\sbe\sin\stcl.m4),\syes\splease!</blockquote>\r\n\r\nThanks\sfor\sthe\ssuggestion,\sI\shave\szero\sexperience\swith\sM4\sbut\shave\scargo\sculted\sroughly\show\sthis\scould\sbe\sdone\sanyway:\r\n<ul>\r\n<li>Hack\s<tt>SC_TCL_EARLY_FLAG()</tt>\sto\saccept\sa\s4th\soptional\sargument\sfor\sthe\svalue\sto\sdefine\sa\sC\smacro\sto\s(<tt>1</tt>\sby\sdefault)</li>\r\n<li>Define\s<tt>_FILE_OFFSET_BITS=64</tt>\sduring\s<tt>SC_TCL_EARLY_FLAGS</tt>\sif\sthat\sis\sneeded\sto\sget\s64-bit\s<tt>off_t</tt></li>\r\n<li>\r\nDefine\s<tt>_TIME_BITS=64</tt>\sduring\s<tt>SC_TCL_64BIT_FLAGS</tt>\sif\sthat\sis\sneeded\sto\sget\s64-bit\s<tt>time_t</tt></li>\r\n<li>Error\sout\sif\s64-bit\s<tt>time_t</tt>\sis\sunavailable.\r\n</li>\r\n\r\n</ul>\r\nSee\s[https://github.com/tcltk/tcl/compare/main...chrstphrchvz:tcl:timet64]\s(currently\sbased\son\smain\sbranch,\sbut\swould\seventually\sprefer\sto\sbase\sit\son\sbug-02b58d5d04).
J login chrstphrchvz
J mimetype text/x-fossil-wiki
K d40b9c8503eb4deeaeb01352b2d0937f77624e49
U chrstphrchvz
Z 4fbc588c566cbc110b8af463416c6b90