summaryrefslogtreecommitdiff
path: root/src/stdafx.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-04-04 20:34:09 +0000
committersmatz <smatz@openttd.org>2008-04-04 20:34:09 +0000
commitfb379b522d90274def9fc1077577cd2a601a60b5 (patch)
treebd5fa43242be00f91b2f36e2395049d516520dfd /src/stdafx.h
parenta7d885e4c60b044dc9e57ec1ec6a3e3b514d4b2f (diff)
downloadopenttd-fb379b522d90274def9fc1077577cd2a601a60b5.tar.xz
(svn r12573) -Codechange: use defined constants instead of numbers in math_func.hpp
Diffstat (limited to 'src/stdafx.h')
-rw-r--r--src/stdafx.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/stdafx.h b/src/stdafx.h
index 80b2592ad..76818d93f 100644
--- a/src/stdafx.h
+++ b/src/stdafx.h
@@ -32,12 +32,15 @@
#include <stdint.h>
#endif
#else
- #define INT64_MAX (9223372036854775807LL)
- #define INT64_MIN (-INT64_MAX - 1)
- #define INT32_MAX (2147483647)
- #define INT32_MIN (-INT32_MAX - 1)
- #define INT16_MAX (32767)
- #define INT16_MIN (-INT16_MAX - 1)
+ #define UINT64_MAX (18446744073709551615ULL)
+ #define INT64_MAX (9223372036854775807LL)
+ #define INT64_MIN (-INT64_MAX - 1)
+ #define UINT32_MAX (4294967295U)
+ #define INT32_MAX (2147483647)
+ #define INT32_MIN (-INT32_MAX - 1)
+ #define UINT16_MAX (65535U)
+ #define INT16_MAX (32767)
+ #define INT16_MIN (-INT16_MAX - 1)
#endif
#include <cstdio>