mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 00:36:56 +02:00
Remove dead typedef macros and harmful u_int*_t redefinitions
The UINT32_TYPE/UINT16_TYPE/INT16_TYPE/UINT8_TYPE/INT8_TYPE/LONGDOUBLE_TYPE macros (copied from sqlite3.c) were never used anywhere in sqlite-vec. The u_int8_t/u_int16_t/u_int64_t typedefs redefined standard types using BSD-only types despite <stdint.h> already being included, breaking builds on musl/Alpine, strict C99, and requiring reactive platform guards. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
85973b3814
commit
85cf415397
1 changed files with 0 additions and 51 deletions
51
sqlite-vec.c
51
sqlite-vec.c
|
|
@ -22,61 +22,10 @@ SQLITE_EXTENSION_INIT1
|
||||||
#include "sqlite3.h"
|
#include "sqlite3.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef UINT32_TYPE
|
|
||||||
#ifdef HAVE_UINT32_T
|
|
||||||
#define UINT32_TYPE uint32_t
|
|
||||||
#else
|
|
||||||
#define UINT32_TYPE unsigned int
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#ifndef UINT16_TYPE
|
|
||||||
#ifdef HAVE_UINT16_T
|
|
||||||
#define UINT16_TYPE uint16_t
|
|
||||||
#else
|
|
||||||
#define UINT16_TYPE unsigned short int
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#ifndef INT16_TYPE
|
|
||||||
#ifdef HAVE_INT16_T
|
|
||||||
#define INT16_TYPE int16_t
|
|
||||||
#else
|
|
||||||
#define INT16_TYPE short int
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#ifndef UINT8_TYPE
|
|
||||||
#ifdef HAVE_UINT8_T
|
|
||||||
#define UINT8_TYPE uint8_t
|
|
||||||
#else
|
|
||||||
#define UINT8_TYPE unsigned char
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#ifndef INT8_TYPE
|
|
||||||
#ifdef HAVE_INT8_T
|
|
||||||
#define INT8_TYPE int8_t
|
|
||||||
#else
|
|
||||||
#define INT8_TYPE signed char
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#ifndef LONGDOUBLE_TYPE
|
|
||||||
#define LONGDOUBLE_TYPE long double
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef SQLITE_VEC_ENABLE_DISKANN
|
#ifndef SQLITE_VEC_ENABLE_DISKANN
|
||||||
#define SQLITE_VEC_ENABLE_DISKANN 1
|
#define SQLITE_VEC_ENABLE_DISKANN 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef _WIN32
|
|
||||||
#ifndef __EMSCRIPTEN__
|
|
||||||
#ifndef __COSMOPOLITAN__
|
|
||||||
#ifndef __wasi__
|
|
||||||
typedef u_int8_t uint8_t;
|
|
||||||
typedef u_int16_t uint16_t;
|
|
||||||
typedef u_int64_t uint64_t;
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef int8_t i8;
|
typedef int8_t i8;
|
||||||
typedef uint8_t u8;
|
typedef uint8_t u8;
|
||||||
typedef int16_t i16;
|
typedef int16_t i16;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue