Browse Source

LibCore: Remove workarounds for system header global name conflicts

Andrew Kaster 1 năm trước cách đây
mục cha
commit
d106b6eae2

+ 1 - 5
Userland/Libraries/LibCore/IOSurface.cpp

@@ -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 {
 

+ 1 - 5
Userland/Libraries/LibCore/MetalContext.mm

@@ -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 {