mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 18:17:23 +00:00
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:
parent
804729fe37
commit
422f1ed8de
Notes:
github-actions[bot]
2024-08-19 10:58:18 +00:00
Author: https://github.com/ADKaster
Commit: 422f1ed8de
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1107
Reviewed-by: https://github.com/jamierocks
1 changed files with 5 additions and 1 deletions
|
@ -15,9 +15,13 @@
|
||||||
#include <AK/Error.h>
|
#include <AK/Error.h>
|
||||||
#include <AK/Noncopyable.h>
|
#include <AK/Noncopyable.h>
|
||||||
|
|
||||||
|
#if defined(AK_OS_MACOS) || defined(AK_OS_IOS)
|
||||||
|
# include <mach/mach.h>
|
||||||
|
#else
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include <mach/mach.h>
|
# include <mach/mach.h>
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace Core {
|
namespace Core {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue