Skip to content

Commit dfb3611

Browse files
committed
Bug 1964446 - Fix sqlite-vec build on Linux+musl.r=asuth,mak
see also: https://phabricator.services.mozilla.com/D247229#8557917 asg017/sqlite-vec#219 Differential Revision: https://phabricator.services.mozilla.com/D248399 UltraBlame original commit: 98761001f9bde7c92c1a50a78328ac3993929563
1 parent e42b166 commit dfb3611

File tree

3 files changed

+23
-32
lines changed

3 files changed

+23
-32
lines changed

third_party/sqlite3/ext/sqlite-vec/patches/bug1962061.patch

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
diff --git a/sqlite-vec.c b/sqlite-vec.c
2+
index 86378ba..e8e38c9 100644
3+
--- a/sqlite-vec.c
4+
+++ b/sqlite-vec.c
5+
@@ -61,18 +61,6 @@ SQLITE_EXTENSION_INIT3
6+
#define LONGDOUBLE_TYPE long double
7+
#endif
8+
9+
-#ifndef _WIN32
10+
-#ifndef __EMSCRIPTEN__
11+
-#ifndef __COSMOPOLITAN__
12+
-#ifndef __wasi__
13+
-typedef u_int8_t uint8_t;
14+
-typedef u_int16_t uint16_t;
15+
-typedef u_int64_t uint64_t;
16+
-#endif
17+
-#endif
18+
-#endif
19+
-#endif
20+
-
21+
typedef int8_t i8;
22+
typedef uint8_t u8;
23+
typedef int16_t i16;

third_party/sqlite3/ext/sqlite-vec/sqlite-vec.c

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

64-
#ifndef _WIN32
65-
#ifndef __EMSCRIPTEN__
66-
#ifndef __COSMOPOLITAN__
67-
#ifndef __wasi__
68-
#ifndef __sun__
69-
typedef u_int8_t uint8_t;
70-
typedef u_int16_t uint16_t;
71-
typedef u_int64_t uint64_t;
72-
#endif
73-
#endif
74-
#endif
75-
#endif
76-
#endif
77-
7864
typedef int8_t i8;
7965
typedef uint8_t u8;
8066
typedef int16_t i16;

0 commit comments

Comments
 (0)