mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
8744075a6c
This increases the execution speed a lot since GCC can't detect the OTTD macro as an endian conversion while Apple's code uses the instruction to convert endian instead of a series of instructions to produce the same result Since we don't have that many endian conversions in the game, overall performance should not increase noteworthy
20 lines
372 B
C
20 lines
372 B
C
/* $Id$ */
|
|
|
|
#ifndef MACOS_STDAFX_H
|
|
#define MACOS_STDAFX_H
|
|
|
|
#include <CoreServices/CoreServices.h>
|
|
// remove the variables that CoreServices defines, but we define ourselves too
|
|
#undef bool
|
|
#undef false
|
|
#undef true
|
|
|
|
/* Name conflict */
|
|
#define Rect OTTDRect
|
|
#define Point OTTDPoint
|
|
#define GetTime OTTDGetTime
|
|
|
|
#define SL_ERROR OSX_SL_ERROR
|
|
|
|
#endif /* MACOS_STDAFX_H */
|