aboutsummaryrefslogtreecommitdiff
path: root/src/os_win.c
diff options
context:
space:
mode:
authormistachkin <mistachkin@noemail.net>2016-04-11 22:45:45 +0000
committermistachkin <mistachkin@noemail.net>2016-04-11 22:45:45 +0000
commit0cedb963a3c0af74b77ede4a333ead2bc221eced (patch)
tree864c887cb836d8e92b5284d146c7e351fbce0bb8 /src/os_win.c
parent9cdd401d3730dd66deebb52dbd14f407e2846cb9 (diff)
downloadsqlite-0cedb963a3c0af74b77ede4a333ead2bc221eced.tar.gz
sqlite-0cedb963a3c0af74b77ede4a333ead2bc221eced.zip
Further refinements.
FossilOrigin-Name: b35bb928b25492f6dd71ccf9c250cb9f0cce09ff
Diffstat (limited to 'src/os_win.c')
-rw-r--r--src/os_win.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/os_win.c b/src/os_win.c
index 698c5af86..d6156d7bb 100644
--- a/src/os_win.c
+++ b/src/os_win.c
@@ -26,16 +26,6 @@
#include "os_win.h"
/*
-** The MSVC CRT on Windows CE may not have a localtime() function. So
-** declare a substitute.
-*/
-#if SQLITE_OS_WINCE && \
- (!defined(SQLITE_MSVC_LOCALTIME_API) || !SQLITE_MSVC_LOCALTIME_API)
-# include <time.h>
-struct tm *__cdecl localtime(const time_t *);
-#endif
-
-/*
** Compiling and using WAL mode requires several APIs that are only
** available in Windows platforms based on the NT kernel.
*/
@@ -2132,8 +2122,9 @@ static void winLogIoerr(int nRetry, int lineno){
** The MSVC CRT on Windows CE may not have a localtime() function. So
** define a substitute.
*/
-#if SQLITE_OS_WINCE && \
+#if !defined(SQLITE_OMIT_LOCALTIME) && defined(_WIN32_WCE) && \
(!defined(SQLITE_MSVC_LOCALTIME_API) || !SQLITE_MSVC_LOCALTIME_API)
+# include <time.h>
struct tm *__cdecl localtime(const time_t *t)
{
static struct tm y;