compat: fix localtime_r() replacement
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 16 Mar 2015 17:20:44 +0000 (19:20 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 16 Mar 2015 17:20:44 +0000 (19:20 +0200)
commitd60d5102b861525edf1ba22f9e6c6b3747a4ed3e
tree5dae258e87699d85ad82c80d5b4a92abb8fa5f7c
parentb6f66cf92315698c6d697580429bfead651148e2
compat: fix localtime_r() replacement

 - Do not clobber thread-specific state on Windows
 - Be thread-safe on non-Windows
compat/localtime_r.c