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 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;