From c5eba649b6540c6f5f154d0889c4aa0f88964e80 Mon Sep 17 00:00:00 2001 From: Bjoern Breitmeyer Date: Thu, 11 Apr 2013 17:09:40 +0200 Subject: Fixed CE build of sqlite3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The updated sqlite3 lacks a forward declaration of localtime. Depending on the CE version that forward declaration was sometimes available. Reviewed-by: Oswald Buddenhagen Reviewed-by: Friedemann Kleint (forward-ported from commit fb1649d30b0542a69a534218e96950d0533dec8b) Change-Id: Ief6d8ed1cad51fa92a333a20c5dfe781d19761eb Reviewed-by: Friedemann Kleint (forward-ported from commit ea70ec8711af45128d63634a01dfc4c1a51ac331) Reviewed-by: Björn Breitmeyer Reviewed-by: Mark Brand --- src/3rdparty/sqlite/sqlite3.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/3rdparty/sqlite/sqlite3.c b/src/3rdparty/sqlite/sqlite3.c index 2d27e750d0..f2696ec0d4 100644 --- a/src/3rdparty/sqlite/sqlite3.c +++ b/src/3rdparty/sqlite/sqlite3.c @@ -14423,6 +14423,10 @@ static void clearYMD_HMS_TZ(DateTime *p){ #define HAVE_LOCALTIME_S 1 #endif +#if SQLITE_OS_WINCE >= 1 +struct tm *__cdecl localtime(const time_t *t); +#endif + #ifndef SQLITE_OMIT_LOCALTIME /* ** The following routine implements the rough equivalent of localtime_r() -- cgit v1.2.3