diff options
-rw-r--r-- | include/private/gcconfig.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h index cbe3ae9e..242f0a0a 100644 --- a/include/private/gcconfig.h +++ b/include/private/gcconfig.h @@ -3591,6 +3591,9 @@ EXTERN_C_BEGIN # elif defined(HAIKU) ptr_t GC_haiku_get_mem(size_t bytes); # define GET_MEM(bytes) (struct hblk*)GC_haiku_get_mem(bytes) +# elif defined(EMSCRIPTEN_TINY) + void *emmalloc_memalign(size_t alignment, size_t size); +# define GET_MEM(bytes) (struct hblk*)emmalloc_memalign(GC_page_size, bytes) # else ptr_t GC_unix_get_mem(size_t bytes); # define GET_MEM(bytes) (struct hblk *)GC_unix_get_mem(bytes) |