summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-02-20 22:58:25 +0000
committerrubidium <rubidium@openttd.org>2010-02-20 22:58:25 +0000
commite2adecd9279dfd328211fa61f0f15dbaee6bc603 (patch)
tree1ded1e23468f422a79a35e1aef45c55cb56296d3
parent045bee52291b4b2ea9a6c5b12f4fb0a880137ea5 (diff)
downloadopenttd-e2adecd9279dfd328211fa61f0f15dbaee6bc603.tar.xz
(svn r19177) -Codechange: introduce INT8_MIN/MAX and UINT8_MAX for MSVC.
-rw-r--r--src/stdafx.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stdafx.h b/src/stdafx.h
index 38d09b547..4ea5ddc58 100644
--- a/src/stdafx.h
+++ b/src/stdafx.h
@@ -51,6 +51,9 @@
#define UINT16_MAX (65535U)
#define INT16_MAX (32767)
#define INT16_MIN (-INT16_MAX - 1)
+ #define UINT8_MAX (255)
+ #define INT8_MAX (127)
+ #define INT8_MIN (-INT8_MAX - 1)
#endif
#include <cstdio>