1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-30 09:59:10 +00:00

(svn r655) Add the necessary bits to make building on SunOS/Solaris work

This commit is contained in:
tron
2004-11-17 09:07:29 +00:00
parent 13f0b6c0cf
commit 87adce3ca0
4 changed files with 21 additions and 1 deletions

View File

@@ -28,6 +28,10 @@
#include <SupportDefs.h>
#endif
#ifdef SUNOS
#include <alloca.h>
#endif
#define BSWAP32(x) ((((x) >> 24) & 0xFF) | (((x) >> 8) & 0xFF00) | (((x) << 8) & 0xFF0000) | (((x) << 24) & 0xFF000000))
#define BSWAP16(x) ((x) >> 8 | (x) << 8)