Skip to content

Commit 4afbb8b

Browse files
committed
Fix compilation on musl libc (Alpine Linux)
Remove platform-specific typedef fallback block that caused redefinition errors on musl-based systems. Since stdint.h is already included and provides uint8_t/uint16_t/uint64_t on all modern platforms, the fallback is unnecessary. Tested on Alpine Linux (musl) and Ubuntu (glibc). Related to upstream PR asg017#199
1 parent dd13eb5 commit 4afbb8b

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

scripts/vendor.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
mkdir -p vendor
33
curl -o sqlite-amalgamation.zip https://www.sqlite.org/2024/sqlite-amalgamation-3450300.zip
44
unzip sqlite-amalgamation.zip

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)