(svn r12344) -Codechange: Check uint64 bitsize on compiletime too.
authorskidd13
Wed, 05 Mar 2008 18:51:26 +0000
changeset 9174 4a7b5962abd6
parent 9173 057e340d2e26
child 9175 5e67fb92d4d6
(svn r12344) -Codechange: Check uint64 bitsize on compiletime too.
src/stdafx.h
--- a/src/stdafx.h	Wed Mar 05 18:33:31 2008 +0000
+++ b/src/stdafx.h	Wed Mar 05 18:51:26 2008 +0000
@@ -279,6 +279,8 @@
 	#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);