mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-29 08:11:13 +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");
|
||||
#endif
|
||||
|
||||
#define FixedPoint FixedPointMacOS
|
||||
#define Duration DurationMacOS
|
||||
#include <IOSurface/IOSurface.h>
|
||||
#undef FixedPoint
|
||||
#undef Duration
|
||||
#import <IOSurface/IOSurface.h>
|
||||
|
||||
namespace Core {
|
||||
|
||||
|
|
|
@ -7,11 +7,7 @@
|
|||
#include <AK/OwnPtr.h>
|
||||
#include <LibCore/MetalContext.h>
|
||||
|
||||
#define FixedPoint FixedPointMacOS
|
||||
#define Duration DurationMacOS
|
||||
#include <Metal/Metal.h>
|
||||
#undef FixedPoint
|
||||
#undef Duration
|
||||
#import <Metal/Metal.h>
|
||||
|
||||
namespace Core {
|
||||
|
||||
|
|
Loading…
Reference in a new issue