(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.

This commit is contained in:
rubidium
2009-07-14 16:43:45 +00:00
parent 2b1c43f81f
commit e3c7a77b40
9 changed files with 100 additions and 176 deletions

View File

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