Get SQLite to build
* changed headers * removed redundant declarations * ran clang-format * added sqlite3.mk
This commit is contained in:
17
third_party/sqlite3/geopoly.c
vendored
17
third_party/sqlite3/geopoly.c
vendored
@@ -16,7 +16,12 @@
|
||||
** This file is #include-ed onto the end of "rtree.c" so that it has
|
||||
** access to all of the R-Tree internals.
|
||||
*/
|
||||
#include <stdlib.h>
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/mem/mem.h"
|
||||
#include "third_party/gdtoa/gdtoa.h"
|
||||
#include "third_party/sqlite3/rtree.h"
|
||||
#include "third_party/sqlite3/sqlite3.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Enable -DGEOPOLY_ENABLE_DEBUG for debugging facilities */
|
||||
#ifdef GEOPOLY_ENABLE_DEBUG
|
||||
@@ -38,11 +43,11 @@
|
||||
# define safe_isalnum(x) sqlite3Isalnum(x)
|
||||
# define safe_isxdigit(x) sqlite3Isxdigit(x)
|
||||
#else
|
||||
/* Use the standard library for separate compilation */
|
||||
#include <ctype.h> /* amalgamator: keep */
|
||||
# define safe_isdigit(x) isdigit((unsigned char)(x))
|
||||
# define safe_isalnum(x) isalnum((unsigned char)(x))
|
||||
# define safe_isxdigit(x) isxdigit((unsigned char)(x))
|
||||
/* Use the standard library for separate compilation */
|
||||
#include "libc/str/str.h" /* amalgamator: keep */
|
||||
#define safe_isdigit(x) isdigit((unsigned char)(x))
|
||||
#define safe_isalnum(x) isalnum((unsigned char)(x))
|
||||
#define safe_isxdigit(x) isxdigit((unsigned char)(x))
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user