Skip to content

Commit

Permalink
Fixed CE build of sqlite3
Browse files Browse the repository at this point in the history
The updated sqlite3 lacks a forward declaration of localtime.
Depending on the CE version that forward declaration
was sometimes available.

Reviewed-by: Oswald Buddenhagen <[email protected]>
Reviewed-by: Friedemann Kleint <[email protected]>
(forward-ported from commit fb1649d)

Change-Id: Ief6d8ed1cad51fa92a333a20c5dfe781d19761eb
Reviewed-by: Friedemann Kleint <[email protected]>
  • Loading branch information
bbreitmeyer authored and The Qt Project committed May 23, 2013
1 parent 7e0bf97 commit ea70ec8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/3rdparty/sqlite/sqlite3.c
Original file line number Diff line number Diff line change
Expand Up @@ -14381,6 +14381,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()
Expand Down

0 comments on commit ea70ec8

Please sign in to comment.