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:
13
src/os_win.c
13
src/os_win.c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user