Skip to content

Commit 774ba0f

Browse files
committed
Fix strcasestr function definition for compatibility with Linux MUSL
1 parent e57ffe2 commit 774ba0f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sqlite-vector.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <stdbool.h>
2222
#include <stddef.h>
2323

24-
#ifdef _WIN32
24+
#if defined(_WIN32) || ((defined(__linux__) && !defined(__GLIBC__) && !defined(__ANDROID__)))
2525
char *strcasestr(const char *haystack, const char *needle) {
2626
if (!haystack || !needle) return NULL;
2727
if (!*needle) return (char *)haystack;

0 commit comments

Comments
 (0)