mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 01:55:07 +00:00
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:
parent
340cecaf80
commit
8be98af77c
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue