mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +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
Notes:
sideshowbarker
2024-07-18 17:10:47 +09:00
Author: https://github.com/sin-ack Commit: https://github.com/SerenityOS/serenity/commit/8be98af77ca Pull-request: https://github.com/SerenityOS/serenity/pull/7580
1 changed files with 2 additions and 0 deletions
|
@ -10,7 +10,9 @@
|
||||||
# include <new>
|
# include <new>
|
||||||
|
|
||||||
# ifndef AK_OS_MACOS
|
# ifndef AK_OS_MACOS
|
||||||
|
extern "C" {
|
||||||
inline size_t malloc_good_size(size_t size) { return size; }
|
inline size_t malloc_good_size(size_t size) { return size; }
|
||||||
|
}
|
||||||
# else
|
# else
|
||||||
# include <malloc/malloc.h>
|
# include <malloc/malloc.h>
|
||||||
# endif
|
# endif
|
||||||
|
|
Loading…
Reference in a new issue