From f20af5933bdd575623aa2bc8b1da23276c583366 Mon Sep 17 00:00:00 2001 From: MDario123 Date: Wed, 12 Feb 2025 01:17:10 +0100 Subject: [PATCH 1/2] fix: musl compile and more general conditional type definition --- sqlite-vec.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sqlite-vec.c b/sqlite-vec.c index 3cc802f..90b3501 100644 --- a/sqlite-vec.c +++ b/sqlite-vec.c @@ -61,17 +61,11 @@ SQLITE_EXTENSION_INIT1 #define LONGDOUBLE_TYPE long double #endif -#ifndef _WIN32 -#ifndef __EMSCRIPTEN__ -#ifndef __COSMOPOLITAN__ -#ifndef __wasi__ +#ifndef UINT8_MAX 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; From 956d99748124faa3bec8f835a65d63503b3fd7de Mon Sep 17 00:00:00 2001 From: MDario123 Date: Wed, 12 Feb 2025 01:20:05 +0100 Subject: [PATCH 2/2] fix: vendor script --- scripts/vendor.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/vendor.sh b/scripts/vendor.sh index 0706aa5..1b43431 100755 --- a/scripts/vendor.sh +++ b/scripts/vendor.sh @@ -1,7 +1,6 @@ -#!/bin/bash +#!/usr/bin/env bash mkdir -p vendor curl -o sqlite-amalgamation.zip https://www.sqlite.org/2024/sqlite-amalgamation-3450300.zip -unzip -d unzip sqlite-amalgamation.zip mv sqlite-amalgamation-3450300/* vendor/ rmdir sqlite-amalgamation-3450300