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.
This commit is contained in:
Andrew Kaster 2024-07-16 23:48:46 -06:00 committed by Sam Atkins
parent 1529f5469c
commit 88044f59c6
Notes: sideshowbarker 2024-07-18 23:46:25 +09:00
3 changed files with 2 additions and 5 deletions

View file

@ -480,7 +480,3 @@ struct Formatter<FixedPoint<precision, Underlying>> : StandardFormatter {
}; };
} }
#if USING_AK_GLOBALLY
using AK::FixedPoint;
#endif

View file

@ -160,7 +160,6 @@ using AK::DoublyLinkedList;
using AK::Error; using AK::Error;
using AK::ErrorOr; using AK::ErrorOr;
using AK::FixedArray; using AK::FixedArray;
using AK::FixedPoint;
using AK::FlyString; using AK::FlyString;
using AK::Function; using AK::Function;
using AK::GenericLexer; using AK::GenericLexer;

View file

@ -9,6 +9,8 @@
#include <AK/FixedPoint.h> #include <AK/FixedPoint.h>
#include <AK/NumericLimits.h> #include <AK/NumericLimits.h>
using AK::FixedPoint;
using Type = FixedPoint<4>; using Type = FixedPoint<4>;
TEST_CASE(arithmetic) TEST_CASE(arithmetic)