From 8be98af77cae3191cf97a4686824c98d89f87ef7 Mon Sep 17 00:00:00 2001 From: sin-ack Date: Sun, 30 May 2021 09:10:39 +0000 Subject: [PATCH] AK: Declare malloc_good_size as extern "C" This would otherwise cause an error with clang when __serenity__ wasn't defined. --- AK/kmalloc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AK/kmalloc.h b/AK/kmalloc.h index 8217fe63f1..ad12854cbc 100644 --- a/AK/kmalloc.h +++ b/AK/kmalloc.h @@ -10,7 +10,9 @@ # include # ifndef AK_OS_MACOS +extern "C" { inline size_t malloc_good_size(size_t size) { return size; } +} # else # include # endif