diff options
author | skidd13 <skidd13@openttd.org> | 2008-03-05 18:51:26 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2008-03-05 18:51:26 +0000 |
commit | 5a98861958adfba24a15c19a9a1fd3820024a8aa (patch) | |
tree | 0608c5ee999e903160e4db57a86cc0d617bda437 | |
parent | 0796a1ccc308951484d06017ee36abf7512df291 (diff) | |
download | openttd-5a98861958adfba24a15c19a9a1fd3820024a8aa.tar.xz |
(svn r12344) -Codechange: Check uint64 bitsize on compiletime too.
-rw-r--r-- | src/stdafx.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stdafx.h b/src/stdafx.h index 0e9a6d3c6..278b7556d 100644 --- a/src/stdafx.h +++ b/src/stdafx.h @@ -279,6 +279,8 @@ typedef unsigned char byte; #define assert_compile(expr) extern "C" void __ct_assert__(int a[1 - 2 * !(expr)]) #endif /* __OS2__ */ +/* Check if the types have the bitsizes like we are using them */ +assert_compile(sizeof(uint64) == 8); assert_compile(sizeof(uint32) == 4); assert_compile(sizeof(uint16) == 2); assert_compile(sizeof(uint8) == 1); |