Menu

#18 compilation error : localtime_r not found

open
nobody
None
5
2012-12-06
2010-11-06
GUI
No

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.

Discussion


Log in to post a comment.