diff options
author | mistachkin <mistachkin@noemail.net> | 2013-02-07 05:12:25 +0000 |
---|---|---|
committer | mistachkin <mistachkin@noemail.net> | 2013-02-07 05:12:25 +0000 |
commit | 2bfe1df01b4ca52f8216dffe89e80eae2131c5a1 (patch) | |
tree | c040d7ae4e46797f5fa4fcc52007bfab3861083c /src/os_win.c | |
parent | 28a3bcba0acc3b14f3a854b950f1968221891ae8 (diff) | |
download | sqlite-2bfe1df01b4ca52f8216dffe89e80eae2131c5a1.tar.gz sqlite-2bfe1df01b4ca52f8216dffe89e80eae2131c5a1.zip |
Add the ability to skip defining the localtime() function when being compiled for WinCE.
FossilOrigin-Name: e1640876df7ed6fb4e84292e5ce1f78635df64ab
Diffstat (limited to 'src/os_win.c')
-rw-r--r-- | src/os_win.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/os_win.c b/src/os_win.c index 107370c41..0b7c0049a 100644 --- a/src/os_win.c +++ b/src/os_win.c @@ -1621,9 +1621,10 @@ static void logIoerr(int nRetry){ /************************************************************************* ** This section contains code for WinCE only. */ +#if !defined(SQLITE_MSVC_LOCALTIME_API) || !SQLITE_MSVC_LOCALTIME_API /* -** Windows CE does not have a localtime() function. So create a -** substitute. +** The MSVC CRT on Windows CE may not have a localtime() function. So +** create a substitute. */ #include <time.h> struct tm *__cdecl localtime(const time_t *t) @@ -1647,6 +1648,7 @@ struct tm *__cdecl localtime(const time_t *t) y.tm_sec = pTm.wSecond; return &y; } +#endif #define HANDLE_TO_WINFILE(a) (winFile*)&((char*)a)[-(int)offsetof(winFile,h)] |