(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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user