mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
AK: Add back ARCH(I386)
This now checks whether the platform is i386-based (but not x86_64).
This commit is contained in:
parent
35e3e3d483
commit
88a3b4da9e
Notes:
sideshowbarker
2024-07-17 02:38:39 +09:00
Author: https://github.com/bugaevc Commit: https://github.com/SerenityOS/serenity/commit/88a3b4da9e Pull-request: https://github.com/SerenityOS/serenity/pull/20957 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/Hendiadyoin1
1 changed files with 7 additions and 1 deletions
|
@ -17,6 +17,12 @@
|
|||
# define AK_IS_ARCH_X86_64() 0
|
||||
#endif
|
||||
|
||||
#if defined(__i386__) && !defined(__x86_64__)
|
||||
# define AK_IS_ARCH_I386() 1
|
||||
#else
|
||||
# define AK_IS_ARCH_I386() 0
|
||||
#endif
|
||||
|
||||
#ifdef __aarch64__
|
||||
# define AK_IS_ARCH_AARCH64() 1
|
||||
#else
|
||||
|
@ -114,7 +120,7 @@
|
|||
|
||||
#define ARCH(arch) (AK_IS_ARCH_##arch())
|
||||
|
||||
#if ARCH(X86_64)
|
||||
#if ARCH(X86_64) || ARCH(I386)
|
||||
# define VALIDATE_IS_X86()
|
||||
#else
|
||||
# define VALIDATE_IS_X86() static_assert(false, "Trying to include x86 only header on non x86 platform");
|
||||
|
|
Loading…
Reference in a new issue