Fix Windows compilation issue by adding malloc.h include

This commit is contained in:
seb
2025-06-21 21:14:20 +02:00
parent ccbd833361
commit 60d609dd6a

View File

@@ -5,6 +5,11 @@
#include <ctype.h>
#include <math.h>
#include <stdbool.h>
#ifdef _WIN32
#include <malloc.h> // For alloca on Windows
#else
#include <alloca.h> // For alloca on Unix-like systems
#endif
#include "similarity_search.h"
// Case insensitive string comparison