From 442efcffb018959a3cdcce564a04584047b07025 Mon Sep 17 00:00:00 2001 From: skidd13 Date: Wed, 5 Mar 2008 18:51:26 +0000 Subject: [PATCH] (svn r12344) -Codechange: Check uint64 bitsize on compiletime too. --- src/stdafx.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/stdafx.h b/src/stdafx.h index 0e9a6d3c6d..278b7556d2 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);