mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-29 16:21:29 +00:00
LibCore: Remove workarounds for system header global name conflicts
This commit is contained in:
parent
8082daaa3f
commit
d106b6eae2
Notes:
sideshowbarker
2024-07-18 23:46:17 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/LadybirdBrowser/ladybird/commit/d106b6eae29 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/676 Reviewed-by: https://github.com/AtkinsSJ ✅ Reviewed-by: https://github.com/trflynn89 ✅
|
@ -11,11 +11,7 @@
|
||||||
static_assert(false, "This file must only be used for macOS");
|
static_assert(false, "This file must only be used for macOS");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define FixedPoint FixedPointMacOS
|
#import <IOSurface/IOSurface.h>
|
||||||
#define Duration DurationMacOS
|
|
||||||
#include <IOSurface/IOSurface.h>
|
|
||||||
#undef FixedPoint
|
|
||||||
#undef Duration
|
|
||||||
|
|
||||||
namespace Core {
|
namespace Core {
|
||||||
|
|
||||||
|
|
|
@ -7,11 +7,7 @@
|
||||||
#include <AK/OwnPtr.h>
|
#include <AK/OwnPtr.h>
|
||||||
#include <LibCore/MetalContext.h>
|
#include <LibCore/MetalContext.h>
|
||||||
|
|
||||||
#define FixedPoint FixedPointMacOS
|
#import <Metal/Metal.h>
|
||||||
#define Duration DurationMacOS
|
|
||||||
#include <Metal/Metal.h>
|
|
||||||
#undef FixedPoint
|
|
||||||
#undef Duration
|
|
||||||
|
|
||||||
namespace Core {
|
namespace Core {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue