lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 28 June 2012 03:31, Arseny Vakhrushev <arseny.vakhrushev@gmail.com> wrote:
> The best way would be to use localtime_r() instead of localtime(). The manual states it is sufficient to check for _POSIX_C_SOURCE >= 1 || _XOPEN_SOURCE || _BSD_SOURCE || _SVID_SOURCE || _POSIX_SOURCE.

lua 5.2 does.
http://www.lua.org/source/5.2/loslib.c.html#l_localtime