1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-23 22:49:09 +00:00

(svn r3596) -Codechange: [OSX] changed to use Apple's macros instead of OTTD macros for endian conversion

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
This commit is contained in:
bjarni
2006-02-12 14:31:33 +00:00
parent 8cf72cdcab
commit 235e72829e
4 changed files with 30 additions and 12 deletions

19
os/macosx/osx_stdafx.h Normal file
View File

@@ -0,0 +1,19 @@
/* $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 */