diff --git a/include/simd_support.hpp b/include/simd_support.hpp index 601a892..e5a6f3b 100644 --- a/include/simd_support.hpp +++ b/include/simd_support.hpp @@ -124,7 +124,8 @@ void deallocate_aligned(T* ptr) free(ptr); } -#elif defined(__linux__) +#elif defined(__linux__) || defined(__EMSCRIPTEN__) + template T* allocate_aligned(size_t size) diff --git a/include/thread_locks.hpp b/include/thread_locks.hpp index 68087ac..7f39e85 100644 --- a/include/thread_locks.hpp +++ b/include/thread_locks.hpp @@ -11,7 +11,7 @@ HISSTOOLS_LIBRARY_NAMESPACE_START() -#ifdef __linux__ +#if defined(__linux__) || defined(__EMSCRIPTEN__) // Linux specific definitions