mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 12:20:00 +01:00
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:
parent
5ace53c96f
commit
bf600c8e1d
|
|
@ -157,7 +157,6 @@ using AK::CountingStream;
|
||||||
using AK::DeprecatedFlyString;
|
using AK::DeprecatedFlyString;
|
||||||
using AK::DeprecatedStringCodePointIterator;
|
using AK::DeprecatedStringCodePointIterator;
|
||||||
using AK::DoublyLinkedList;
|
using AK::DoublyLinkedList;
|
||||||
using AK::Duration;
|
|
||||||
using AK::Error;
|
using AK::Error;
|
||||||
using AK::ErrorOr;
|
using AK::ErrorOr;
|
||||||
using AK::FixedArray;
|
using AK::FixedArray;
|
||||||
|
|
|
||||||
|
|
@ -581,7 +581,6 @@ using AK::day_of_year;
|
||||||
using AK::days_in_month;
|
using AK::days_in_month;
|
||||||
using AK::days_in_year;
|
using AK::days_in_year;
|
||||||
using AK::days_since_epoch;
|
using AK::days_since_epoch;
|
||||||
using AK::Duration;
|
|
||||||
using AK::is_leap_year;
|
using AK::is_leap_year;
|
||||||
using AK::MonotonicTime;
|
using AK::MonotonicTime;
|
||||||
using AK::seconds_since_epoch_to_year;
|
using AK::seconds_since_epoch_to_year;
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,8 @@
|
||||||
#include <AK/Time.h>
|
#include <AK/Time.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
|
||||||
|
using AK::Duration;
|
||||||
|
|
||||||
#if defined(__TIMESIZE) && __TIMESIZE < 64
|
#if defined(__TIMESIZE) && __TIMESIZE < 64
|
||||||
# define TIME_T_IS_32BIT
|
# define TIME_T_IS_32BIT
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user