AK: Declare malloc_good_size as extern "C"

This would otherwise cause an error with clang when __serenity__ wasn't
defined.
This commit is contained in:
sin-ack 2021-05-30 09:10:39 +00:00 committed by Linus Groh
parent 340cecaf80
commit 8be98af77c
Notes: sideshowbarker 2024-07-18 17:10:47 +09:00

View file

@ -10,7 +10,9 @@
# include <new>
# ifndef AK_OS_MACOS
extern "C" {
inline size_t malloc_good_size(size_t size) { return size; }
}
# else
# include <malloc/malloc.h>
# endif