summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2023-04-14 10:44:17 -0400
committerLinus Groh <mail@linusgroh.de>2023-04-14 19:15:19 +0200
commit97b7e494e43e22b87682ea028a179f60611a5336 (patch)
treeac2f209db1ac01294b3869a45a8453a91330caf5 /AK
parent50f42407f6c2c97d80458d35849bdb9e2f2dcf63 (diff)
downloadserenity-97b7e494e43e22b87682ea028a179f60611a5336.zip
Everywhere: Use ARCH(AARCH64) instead of AK_ARCH_AARCH64
The former is typo-resistant after 349e54d5375a4a, so make use of that.
Diffstat (limited to 'AK')
-rw-r--r--AK/Platform.h2
-rw-r--r--AK/StdLibExtraDetails.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/AK/Platform.h b/AK/Platform.h
index 3ea0dcade6..7b5c28e663 100644
--- a/AK/Platform.h
+++ b/AK/Platform.h
@@ -148,7 +148,7 @@
#ifdef NAKED
# undef NAKED
#endif
-#ifndef AK_ARCH_AARCH64
+#if !ARCH(AARCH64)
# define NAKED __attribute__((naked))
#else
# define NAKED
diff --git a/AK/StdLibExtraDetails.h b/AK/StdLibExtraDetails.h
index 1fef15c4bb..e7c3d7405d 100644
--- a/AK/StdLibExtraDetails.h
+++ b/AK/StdLibExtraDetails.h
@@ -274,7 +274,7 @@ template<>
struct __MakeUnsigned<bool> {
using Type = bool;
};
-#ifdef AK_ARCH_AARCH64
+#if ARCH(AARCH64)
template<>
struct __MakeUnsigned<wchar_t> {
using Type = wchar_t;
@@ -332,7 +332,7 @@ template<>
struct __MakeSigned<char> {
using Type = char;
};
-#ifdef AK_ARCH_AARCH64
+#if ARCH(AARCH64)
template<>
struct __MakeSigned<wchar_t> {
using Type = void;