From 88044f59c6cf287b45fb81975dbc833a5af9625a Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Tue, 16 Jul 2024 23:48:46 -0600 Subject: [PATCH] AK: Stop exporting AK::FixedPoint into the global namespace This declaration has conflicts with the macOS SDK, which becomes a problem when trying to interact with system clang modules. --- AK/FixedPoint.h | 4 ---- AK/Forward.h | 1 - Tests/AK/TestFixedPoint.cpp | 2 ++ 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/AK/FixedPoint.h b/AK/FixedPoint.h index a11077b4091..84816eb7ee4 100644 --- a/AK/FixedPoint.h +++ b/AK/FixedPoint.h @@ -480,7 +480,3 @@ struct Formatter> : StandardFormatter { }; } - -#if USING_AK_GLOBALLY -using AK::FixedPoint; -#endif diff --git a/AK/Forward.h b/AK/Forward.h index 86b869547b5..e074ffe455d 100644 --- a/AK/Forward.h +++ b/AK/Forward.h @@ -160,7 +160,6 @@ using AK::DoublyLinkedList; using AK::Error; using AK::ErrorOr; using AK::FixedArray; -using AK::FixedPoint; using AK::FlyString; using AK::Function; using AK::GenericLexer; diff --git a/Tests/AK/TestFixedPoint.cpp b/Tests/AK/TestFixedPoint.cpp index 15683e8ba77..4dad1783d2b 100644 --- a/Tests/AK/TestFixedPoint.cpp +++ b/Tests/AK/TestFixedPoint.cpp @@ -9,6 +9,8 @@ #include #include +using AK::FixedPoint; + using Type = FixedPoint<4>; TEST_CASE(arithmetic)