Forum OpenACS Q&A: Re: ]project-open[ V5.0 Release Candidate and OpenACS

Thank you for the fixes.

Now that you're on it, please correct also the file reentrant.c and replace these lines:

if (sizeof(time_t) == 4) {
errNum = _localtime32_s(&tlsPtr->ltbuf, timep);
} else {
errNum = _localtime64_s(&tlsPtr->ltbuf, timep);

with just

errNum = localtime_s(&tlsPtr->ltbuf, timep);

The compiler, whatever version, and for both 32 and 64 bit targets takes care of that and it does it at compile time. So no point in having a useless check that gets called every time the function is used.
If you need background information, please read MS documentation.