LibAudio+LibCore: Remove workarounds for system header conflicts

This commit could possibly be cherry-picked to serenity
This commit is contained in:
Andrew Kaster 2024-07-16 23:57:20 -06:00 committed by Sam Atkins
parent 349a3ceec5
commit 8082daaa3f
Notes: sideshowbarker 2024-07-18 23:46:20 +09:00
2 changed files with 2 additions and 12 deletions

View file

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

View file

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