Skip to content

Commit 8d7daeb

Browse files
committed
Use definitions from stdint.h instead define uintXX_t by hand
These hand-written definitions don't compile on some platforms like musl since u_intXX_t (with two underscores) types aren't standard. As stdint.h already contains defintions for uintXX_t types, there's no reason to define them manually. Let's clean them up. Signed-off-by: Yao Zi <[email protected]>
1 parent a2dd24f commit 8d7daeb

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

sqlite-vec.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,6 @@ SQLITE_EXTENSION_INIT1
6161
#define LONGDOUBLE_TYPE long double
6262
#endif
6363

64-
#ifndef _WIN32
65-
#ifndef __EMSCRIPTEN__
66-
#ifndef __COSMOPOLITAN__
67-
#ifndef __wasi__
68-
typedef u_int8_t uint8_t;
69-
typedef u_int16_t uint16_t;
70-
typedef u_int64_t uint64_t;
71-
#endif
72-
#endif
73-
#endif
74-
#endif
75-
7664
typedef int8_t i8;
7765
typedef uint8_t u8;
7866
typedef int16_t i16;

0 commit comments

Comments
 (0)