mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 06:48:31 +00:00
Get SQLite to build
* changed headers * removed redundant declarations * ran clang-format * added sqlite3.mk
This commit is contained in:
parent
644f290035
commit
919b6fec10
156 changed files with 2847 additions and 6772 deletions
14
third_party/sqlite3/os_win.c
vendored
14
third_party/sqlite3/os_win.c
vendored
|
@ -12,18 +12,19 @@
|
|||
**
|
||||
** This file contains code that is specific to Windows.
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
#if SQLITE_OS_WIN /* This file is used for Windows only */
|
||||
#include "third_party/sqlite3/sqliteInt.h"
|
||||
#if SQLITE_OS_WIN /* This file is used for Windows only */
|
||||
/* clang-format off */
|
||||
|
||||
/*
|
||||
** Include code that is common to all os_*.c files
|
||||
*/
|
||||
#include "os_common.h"
|
||||
#include "third_party/sqlite3/os_common.h"
|
||||
|
||||
/*
|
||||
** Include the header file for the Windows VFS.
|
||||
*/
|
||||
#include "os_win.h"
|
||||
#include "third_party/sqlite3/os_win.h"
|
||||
|
||||
/*
|
||||
** Compiling and using WAL mode requires several APIs that are only
|
||||
|
@ -2193,9 +2194,8 @@ static void winLogIoerr(int nRetry, int lineno){
|
|||
** The MSVC CRT on Windows CE may not have a localtime() function.
|
||||
** So define a substitute.
|
||||
*/
|
||||
# include <time.h>
|
||||
struct tm *__cdecl localtime(const time_t *t)
|
||||
{
|
||||
#include "libc/time/time.h"
|
||||
struct tm *__cdecl localtime(const time_t *t) {
|
||||
static struct tm y;
|
||||
FILETIME uTm, lTm;
|
||||
SYSTEMTIME pTm;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue