A quick fix/work-around will be to add the following at the top of sqlite3.c
#define HAVE_LOCALTIME_S 0 #include <time.h> struct tm *__cdecl localtime(const time_t *t); - afriza On Thu, Nov 18, 2010 at 3:38 PM, Afriza N. Arief <afriza...@gmail.com>wrote: > In my WinCE SDK, HAVE_LOCALTIME_S is defined to 1 > > This causes a compile error since the headers and libraries don't seem to > have localtime_s() > > I then #define HAVE_LOCALTIME_S 0 but another compile error pops up. > > This time the error is because localtime() is used at line 12970 before it > is actually defined at line 29714. I am using SQLite 3.7.3 amalgamation with > VS2008 and VS2005. > > Regards, > > Afriza N. Arief > _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users