os/macosx/osx_stdafx.h
author bjarni
Sun, 12 Feb 2006 14:31:33 +0000
changeset 3016 958672b0f8e2
permissions -rw-r--r--
(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
3016
958672b0f8e2 (svn r3596) -Codechange: [OSX] changed to use Apple's macros instead of OTTD macros for endian conversion
bjarni
parents:
diff changeset
     1
/* $Id$ */
958672b0f8e2 (svn r3596) -Codechange: [OSX] changed to use Apple's macros instead of OTTD macros for endian conversion
bjarni
parents:
diff changeset
     2
958672b0f8e2 (svn r3596) -Codechange: [OSX] changed to use Apple's macros instead of OTTD macros for endian conversion
bjarni
parents:
diff changeset
     3
#ifndef MACOS_STDAFX_H
958672b0f8e2 (svn r3596) -Codechange: [OSX] changed to use Apple's macros instead of OTTD macros for endian conversion
bjarni
parents:
diff changeset
     4
#define MACOS_STDAFX_H
958672b0f8e2 (svn r3596) -Codechange: [OSX] changed to use Apple's macros instead of OTTD macros for endian conversion
bjarni
parents:
diff changeset
     5
958672b0f8e2 (svn r3596) -Codechange: [OSX] changed to use Apple's macros instead of OTTD macros for endian conversion
bjarni
parents:
diff changeset
     6
#include <CoreServices/CoreServices.h>
958672b0f8e2 (svn r3596) -Codechange: [OSX] changed to use Apple's macros instead of OTTD macros for endian conversion
bjarni
parents:
diff changeset
     7
// remove the variables that CoreServices defines, but we define ourselves too
958672b0f8e2 (svn r3596) -Codechange: [OSX] changed to use Apple's macros instead of OTTD macros for endian conversion
bjarni
parents:
diff changeset
     8
#undef bool
958672b0f8e2 (svn r3596) -Codechange: [OSX] changed to use Apple's macros instead of OTTD macros for endian conversion
bjarni
parents:
diff changeset
     9
#undef false
958672b0f8e2 (svn r3596) -Codechange: [OSX] changed to use Apple's macros instead of OTTD macros for endian conversion
bjarni
parents:
diff changeset
    10
#undef true
958672b0f8e2 (svn r3596) -Codechange: [OSX] changed to use Apple's macros instead of OTTD macros for endian conversion
bjarni
parents:
diff changeset
    11
958672b0f8e2 (svn r3596) -Codechange: [OSX] changed to use Apple's macros instead of OTTD macros for endian conversion
bjarni
parents:
diff changeset
    12
/* Name conflict */
958672b0f8e2 (svn r3596) -Codechange: [OSX] changed to use Apple's macros instead of OTTD macros for endian conversion
bjarni
parents:
diff changeset
    13
#define Rect		OTTDRect
958672b0f8e2 (svn r3596) -Codechange: [OSX] changed to use Apple's macros instead of OTTD macros for endian conversion
bjarni
parents:
diff changeset
    14
#define Point		OTTDPoint
958672b0f8e2 (svn r3596) -Codechange: [OSX] changed to use Apple's macros instead of OTTD macros for endian conversion
bjarni
parents:
diff changeset
    15
#define GetTime		OTTDGetTime
958672b0f8e2 (svn r3596) -Codechange: [OSX] changed to use Apple's macros instead of OTTD macros for endian conversion
bjarni
parents:
diff changeset
    16
958672b0f8e2 (svn r3596) -Codechange: [OSX] changed to use Apple's macros instead of OTTD macros for endian conversion
bjarni
parents:
diff changeset
    17
#define SL_ERROR OSX_SL_ERROR
958672b0f8e2 (svn r3596) -Codechange: [OSX] changed to use Apple's macros instead of OTTD macros for endian conversion
bjarni
parents:
diff changeset
    18
958672b0f8e2 (svn r3596) -Codechange: [OSX] changed to use Apple's macros instead of OTTD macros for endian conversion
bjarni
parents:
diff changeset
    19
#endif /* MACOS_STDAFX_H */