1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-11 01:42:22 +03:00

Further refinements.

FossilOrigin-Name: b35bb928b25492f6dd71ccf9c250cb9f0cce09ff
This commit is contained in:
mistachkin
2016-04-11 22:45:45 +00:00
parent 9cdd401d37
commit 0cedb963a3
4 changed files with 18 additions and 19 deletions

View File

@@ -25,16 +25,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;