mirror of https://github.com/OpenTTD/OpenTTD
(svn r4003) - Minor codebeautifier@work
parent
010d715039
commit
a48a1807fe
12
stdafx.h
12
stdafx.h
|
@ -53,14 +53,14 @@
|
||||||
#endif /* __MORPHOS__ */
|
#endif /* __MORPHOS__ */
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
#include "os/macosx/osx_stdafx.h"
|
# include "os/macosx/osx_stdafx.h"
|
||||||
// make endian swapping use Apple's macros to increase speed
|
// make endian swapping use Apple's macros to increase speed
|
||||||
#define BSWAP32(x) Endian32_Swap(x)
|
# define BSWAP32(x) Endian32_Swap(x)
|
||||||
#define BSWAP16(x) Endian16_Swap(x)
|
# define BSWAP16(x) Endian16_Swap(x)
|
||||||
#else
|
#else
|
||||||
#define BSWAP32(x) ((((x) >> 24) & 0xFF) | (((x) >> 8) & 0xFF00) | (((x) << 8) & 0xFF0000) | (((x) << 24) & 0xFF000000))
|
# define BSWAP32(x) ((((x) >> 24) & 0xFF) | (((x) >> 8) & 0xFF00) | (((x) << 8) & 0xFF0000) | (((x) << 24) & 0xFF000000))
|
||||||
#define BSWAP16(x) ((x) >> 8 | (x) << 8)
|
# define BSWAP16(x) ((x) >> 8 | (x) << 8)
|
||||||
#endif
|
#endif /* __APPLE__ */
|
||||||
|
|
||||||
// by default we use [] var arrays
|
// by default we use [] var arrays
|
||||||
#define VARARRAY_SIZE
|
#define VARARRAY_SIZE
|
||||||
|
|
Loading…
Reference in New Issue