Browse Source

LibAudio+LibCore: Remove workarounds for system header conflicts

This commit could possibly be cherry-picked to serenity
Andrew Kaster 1 year ago
parent
commit
8082daaa3f

+ 0 - 5
Userland/Libraries/LibAudio/PlaybackStreamAudioUnit.cpp

@@ -11,12 +11,7 @@
 #include <LibCore/SharedCircularQueue.h>
 #include <LibCore/ThreadedPromise.h>
 
-// Several AK types conflict with MacOS types.
-#define FixedPoint FixedPointMacOS
-#define Duration DurationMacOS
 #include <AudioUnit/AudioUnit.h>
-#undef FixedPoint
-#undef Duration
 
 namespace Audio {
 

+ 2 - 7
Userland/Libraries/LibCore/FileWatcherMacOS.mm

@@ -18,13 +18,8 @@
 static_assert(false, "This file must only be used for macOS");
 #endif
 
-// Several AK types conflict with MacOS types.
-#define FixedPoint FixedPointMacOS
-#define Duration DurationMacOS
-#include <CoreServices/CoreServices.h>
-#include <dispatch/dispatch.h>
-#undef FixedPoint
-#undef Duration
+#import <CoreServices/CoreServices.h>
+#import <dispatch/dispatch.h>
 
 namespace Core {