AK: Stop exporting AK::Duration into the global namespace

This has conflicts with MacTypes.h from the Apple macOS SDKs, which
becomes a huge problem when trying to interact with system clang modules
This commit is contained in:
Andrew Kaster 2024-07-16 23:47:22 -06:00 committed by Sam Atkins
parent 5ace53c96f
commit bf600c8e1d
Notes: sideshowbarker 2024-07-18 23:46:31 +09:00
3 changed files with 2 additions and 2 deletions

View file

@ -157,7 +157,6 @@ using AK::CountingStream;
using AK::DeprecatedFlyString;
using AK::DeprecatedStringCodePointIterator;
using AK::DoublyLinkedList;
using AK::Duration;
using AK::Error;
using AK::ErrorOr;
using AK::FixedArray;

View file

@ -581,7 +581,6 @@ using AK::day_of_year;
using AK::days_in_month;
using AK::days_in_year;
using AK::days_since_epoch;
using AK::Duration;
using AK::is_leap_year;
using AK::MonotonicTime;
using AK::seconds_since_epoch_to_year;

View file

@ -9,6 +9,8 @@
#include <AK/Time.h>
#include <sys/time.h>
using AK::Duration;
#if defined(__TIMESIZE) && __TIMESIZE < 64
# define TIME_T_IS_32BIT
#endif