summaryrefslogtreecommitdiff
path: root/src/sound
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-14 16:43:45 +0000
committerrubidium <rubidium@openttd.org>2009-07-14 16:43:45 +0000
commite3c7a77b4066f00f3248e390184da874bd20d7ee (patch)
tree616b02702d4044f27e435ab5e0f5d826da92a171 /src/sound
parent2b1c43f81f792a1aa28065c1fef4ea9cbad1f5a9 (diff)
downloadopenttd-e3c7a77b4066f00f3248e390184da874bd20d7ee.tar.xz
(svn r16827) -Codechange: make OSX specific files include stdafx.h always as the first file. Also unify OSX specific stuff into osx_stdafx.h and remove unused includes.
Diffstat (limited to 'src/sound')
-rw-r--r--src/sound/cocoa_s.cpp17
1 files changed, 4 insertions, 13 deletions
diff --git a/src/sound/cocoa_s.cpp b/src/sound/cocoa_s.cpp
index 851136efa..f50b6bd94 100644
--- a/src/sound/cocoa_s.cpp
+++ b/src/sound/cocoa_s.cpp
@@ -10,27 +10,18 @@
#ifdef WITH_COCOA
-#define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_3
-#include <AvailabilityMacros.h>
-
-#include <AudioUnit/AudioUnit.h>
-
-/* Name conflict */
-#define Rect OTTDRect
-#define Point OTTDPoint
-#define WindowClass OTTDWindowClass
-
#include "../stdafx.h"
#include "../debug.h"
#include "../driver.h"
#include "../mixer.h"
#include "../core/endian_type.hpp"
-
#include "cocoa_s.h"
-#undef WindowClass
-#undef Point
+#define Rect OTTDRect
+#define Point OTTDPoint
+#include <AudioUnit/AudioUnit.h>
#undef Rect
+#undef Point
static FSoundDriver_Cocoa iFSoundDriver_Cocoa;