compilation error : localtime_r not found
Brought to you by:
knizhnik
Gigabase-379 is not compiling on Windows with with VS 2008.
The following error is raised a few times :
gigabase\datetime.h(146) : error C3861: 'localtime_r': identifier not found
As HAVE_LOCALTIME_R is defined to 0 on Windows (config.h:143)
I think that line 139 of datetime.h which is:
#if defined(HAVE_LOCALTIME_R) && !defined(NO_PTHREADS)
should be replaced by this line:
#if HAVE_LOCALTIME_R && !defined(NO_PTHREADS)
With this fix, everything compile well.