LibCore: Don't wrap <mach/mach.h> in extern "C" on Darwin

This causes issues when loading the file into a clang module, such as
when using Core::MachPort from Objective-C or Swift.
This commit is contained in:
Andrew Kaster 2024-08-06 21:54:05 -06:00 committed by Andreas Kling
commit 422f1ed8de
Notes: github-actions[bot] 2024-08-19 10:58:18 +00:00

View file

@ -15,9 +15,13 @@
#include <AK/Error.h>
#include <AK/Noncopyable.h>
#if defined(AK_OS_MACOS) || defined(AK_OS_IOS)
# include <mach/mach.h>
#else
extern "C" {
#include <mach/mach.h>
# include <mach/mach.h>
}
#endif
namespace Core {