[sqlite] A Bug? HAVE_LOCALTIME_S=0 under WinCE causes compile error

2010-11-17 Thread Afriza N. Arief
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 actua

Re: [sqlite] A Bug? HAVE_LOCALTIME_S=0 under WinCE causes compile error

2010-11-23 Thread Afriza N. Arief
A quick fix/work-around will be to add the following at the top of sqlite3.c #define HAVE_LOCALTIME_S 0 #include struct tm *__cdecl localtime(const time_t *t); - afriza On Thu, Nov 18, 2010 at 3:38 PM, Afriza N. Arief wrote: > In my WinCE SDK, HAVE_LOCALTIME_S is defined to 1 > > This causes a