mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:27:35 +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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue