summaryrefslogtreecommitdiff
path: root/src/stdafx.h
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2019-03-04 20:51:46 +0100
committerPatric Stout <truebrain@openttd.org>2019-03-05 22:22:00 +0100
commit1c5ea330994f183438a47cafd382bfdb53b24888 (patch)
tree752a86510e2beef7168971d05211415d467ef7da /src/stdafx.h
parentaa350528dfbfc8175f140202252cfdc6dbf46aa8 (diff)
downloadopenttd-1c5ea330994f183438a47cafd382bfdb53b24888.tar.xz
Fix: warnings when compiling for a recent version of Haiku
This might break older Haiku versions, but it is hard to tell.
Diffstat (limited to 'src/stdafx.h')
-rw-r--r--src/stdafx.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/stdafx.h b/src/stdafx.h
index 1f1181b15..98f5d13b9 100644
--- a/src/stdafx.h
+++ b/src/stdafx.h
@@ -309,12 +309,18 @@ typedef unsigned char byte;
#endif
#if defined(TROUBLED_INTS)
- /* Haiku's types for uint32/int32 are based on longs, which causes
- * trouble all over the place in OpenTTD. */
- #define uint32 uint32_ugly_hack
- #define int32 int32_ugly_hack
+ /* Haiku's types for uint32/int32/uint64/int64 are different than what
+ * they are on other platforms; not in length, but how to print them.
+ * So make them more like the other platforms, to make printf() etc a
+ * little bit easier. */
+# define uint32 uint32_ugly_hack
+# define int32 int32_ugly_hack
+# define uint64 uint64_ugly_hack
+# define int64 int64_ugly_hack
typedef unsigned int uint32_ugly_hack;
typedef signed int int32_ugly_hack;
+ typedef unsigned __int64 uint64_ugly_hack;
+ typedef signed __int64 int64_ugly_hack;
#else
typedef unsigned char uint8;
typedef signed char int8;