summaryrefslogtreecommitdiff
path: root/stdafx.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2004-11-17 09:07:29 +0000
committertron <tron@openttd.org>2004-11-17 09:07:29 +0000
commit87adce3ca0bfd9018161a97c9e4f36eaf74d9b10 (patch)
tree5a3378a748ffa56073828573db89ccf305848977 /stdafx.h
parent13f0b6c0cf754184cfef8645e709f10240da5f98 (diff)
downloadopenttd-87adce3ca0bfd9018161a97c9e4f36eaf74d9b10.tar.xz
(svn r655) Add the necessary bits to make building on SunOS/Solaris work
Diffstat (limited to 'stdafx.h')
-rw-r--r--stdafx.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/stdafx.h b/stdafx.h
index aa5631c07..6785f8552 100644
--- a/stdafx.h
+++ b/stdafx.h
@@ -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)