From c31b547fae268cdb5754ab35515cae0b38f71036 Mon Sep 17 00:00:00 2001 From: nipos Date: Thu, 26 Jan 2023 00:25:36 +0100 Subject: [PATCH] AK: Use constexpr instead of consteval on OpenBSD --- AK/String.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AK/String.h b/AK/String.h index 38873c614c..aa9f570f41 100644 --- a/AK/String.h +++ b/AK/String.h @@ -28,8 +28,8 @@ namespace Detail { class StringData; } -// FIXME: Remove this when Apple Clang fully supports consteval. -#if defined(AK_OS_MACOS) +// FIXME: Remove this when Apple Clang and OpenBSD Clang fully supports consteval. +#if defined(AK_OS_MACOS) || defined(AK_OS_OPENBSD) # define AK_SHORT_STRING_CONSTEVAL constexpr #else # define AK_SHORT_STRING_CONSTEVAL consteval