mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 15:28:30 +00:00
Upgrade SQLite to 3.40 (#699)
This commit is contained in:
parent
bcae817215
commit
0dc0758574
151 changed files with 27917 additions and 22169 deletions
23
third_party/sqlite3/mem1.c
vendored
23
third_party/sqlite3/mem1.c
vendored
|
@ -41,8 +41,7 @@
|
|||
** be necessary when compiling for Delphi,
|
||||
** for example.
|
||||
*/
|
||||
#include "third_party/sqlite3/sqliteInt.inc"
|
||||
/* clang-format off */
|
||||
#include "third_party/sqlite3/sqliteInt.h"
|
||||
|
||||
/*
|
||||
** This version of the memory allocator is the default. It is
|
||||
|
@ -104,16 +103,16 @@ static malloc_zone_t* _sqliteZone_;
|
|||
** the macro SQLITE_MALLOCSIZE to the desired function name.
|
||||
*/
|
||||
#if defined(SQLITE_USE_MALLOC_H)
|
||||
#include "libc/mem/mem.h"
|
||||
#if defined(SQLITE_USE_MALLOC_USABLE_SIZE)
|
||||
#if !defined(SQLITE_MALLOCSIZE)
|
||||
#define SQLITE_MALLOCSIZE(x) malloc_usable_size(x)
|
||||
#endif
|
||||
#elif defined(SQLITE_USE_MSIZE)
|
||||
#if !defined(SQLITE_MALLOCSIZE)
|
||||
#define SQLITE_MALLOCSIZE _msize
|
||||
#endif
|
||||
#endif
|
||||
# include <malloc.h>
|
||||
# if defined(SQLITE_USE_MALLOC_USABLE_SIZE)
|
||||
# if !defined(SQLITE_MALLOCSIZE)
|
||||
# define SQLITE_MALLOCSIZE(x) malloc_usable_size(x)
|
||||
# endif
|
||||
# elif defined(SQLITE_USE_MSIZE)
|
||||
# if !defined(SQLITE_MALLOCSIZE)
|
||||
# define SQLITE_MALLOCSIZE _msize
|
||||
# endif
|
||||
# endif
|
||||
#endif /* defined(SQLITE_USE_MALLOC_H) */
|
||||
|
||||
#endif /* __APPLE__ or not __APPLE__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue