From 402a1e24bae42c3789a7e000da7ca3c0f07d5dd0 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 6 May 2008 22:17:12 +0000 Subject: (svn r12977) -Codechange: remove quite some redundant (duplicate) function declarations. --- src/stdafx.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/stdafx.h') diff --git a/src/stdafx.h b/src/stdafx.h index 43a1694fb..80c60f1c9 100644 --- a/src/stdafx.h +++ b/src/stdafx.h @@ -283,7 +283,7 @@ typedef unsigned char byte; #if defined(__OS2__) #define assert_compile(expr) #else - #define assert_compile(expr) extern "C" void __ct_assert__(int a[1 - 2 * !(expr)]) + #define assert_compile(expr) extern const int __ct_assert__[1 - 2 * !(expr)] #endif /* __OS2__ */ /* Check if the types have the bitsizes like we are using them */ @@ -292,7 +292,7 @@ assert_compile(sizeof(uint32) == 4); assert_compile(sizeof(uint16) == 2); assert_compile(sizeof(uint8) == 1); -#define lengthof(x) (sizeof(x)/sizeof(x[0])) +#define lengthof(x) (sizeof(x) / sizeof(x[0])) #define endof(x) (&x[lengthof(x)]) #define lastof(x) (&x[lengthof(x) - 1]) -- cgit v1.2.3-54-g00ecf