From 1b0f35093daf3e28b015b95f30c4e0fd9028ac36 Mon Sep 17 00:00:00 2001 From: Oli Larkin Date: Thu, 18 Jan 2024 20:56:26 +0100 Subject: [PATCH] WIP: Emscripten support --- include/simd_support.hpp | 3 ++- include/thread_locks.hpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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