diff options
Diffstat (limited to 'src/music/qtmidi.cpp')
-rw-r--r-- | src/music/qtmidi.cpp | 32 |
1 files changed, 6 insertions, 26 deletions
diff --git a/src/music/qtmidi.cpp b/src/music/qtmidi.cpp index dce3e1033..e49e13c33 100644 --- a/src/music/qtmidi.cpp +++ b/src/music/qtmidi.cpp @@ -21,36 +21,16 @@ #ifndef NO_QUICKTIME -#define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_3 -#include <AvailabilityMacros.h> - -/* - * OpenTTD includes. - */ -#define WindowClass OSX_WindowClass -#include <QuickTime/QuickTime.h> -#undef WindowClass - #include "../stdafx.h" #include "qtmidi.h" - -/* - * System includes. We need to workaround with some defines because there's - * stuff already defined in QuickTime headers. - */ -#define OTTD_Random OSX_OTTD_Random -#undef OTTD_Random -#undef WindowClass -#undef SL_ERROR -#undef bool - -#include <assert.h> -#include <unistd.h> -#include <fcntl.h> - -/* we need to include debug.h after CoreServices because defining DEBUG will break CoreServices in OSX 10.2 */ #include "../debug.h" +#define Rect OTTDRect +#define Point OTTDPoint +#include <QuickTime/QuickTime.h> +#undef Rect +#undef Point + static FMusicDriver_QtMidi iFMusicDriver_QtMidi; |