mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
df8df947f6
Including signal.h would cause several ports to fail on build, because it would end up including AK/Platform.h through these mcontext headers. This is problematic because AK/Platform.h defines several macros with very common names, such as `NAKED` (breaks radare2), and `NO_SANITIZE_ADDRESS` and `ALWAYS_INLINE` (breaks ruby).
13 lines
283 B
C
13 lines
283 B
C
/*
|
|
* Copyright (c) 2022, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#if defined(__i386__) || defined(__x86_64__)
|
|
# include <Kernel/Arch/x86/mcontext.h>
|
|
#elif defined(__aarch64__)
|
|
# include <Kernel/Arch/aarch64/mcontext.h>
|
|
#endif
|