From 8d7daebf9b970024850befef0d57f4f9f78ddb92 Mon Sep 17 00:00:00 2001 From: Yao Zi Date: Sat, 31 May 2025 15:41:13 +0000 Subject: [PATCH] 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 --- sqlite-vec.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/sqlite-vec.c b/sqlite-vec.c index 3cc802f0..09331dc7 100644 --- a/sqlite-vec.c +++ b/sqlite-vec.c @@ -61,18 +61,6 @@ SQLITE_EXTENSION_INIT1 #define LONGDOUBLE_TYPE long double #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 uint8_t u8; typedef int16_t i16;