From 5d31eb93771f00f94b907cd19b251adcb907a49d Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 13 May 2009 10:32:03 +0200 Subject: [PATCH] include: Fix the C_ASSERT macro for the latest gcc. --- include/winnt.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/winnt.h b/include/winnt.h index abcc50205a1..93c796124fc 100644 --- a/include/winnt.h +++ b/include/winnt.h @@ -291,10 +291,8 @@ extern "C" { #if defined(_MSC_VER) # define C_ASSERT(e) typedef char __C_ASSERT__[(e)?1:-1] -#elif defined(__GNUC__) -# define C_ASSERT(e) extern char __C_ASSERT__[(e)?1:-1] __attribute__((unused)) #else -# define C_ASSERT(e) +# define C_ASSERT(e) extern void __C_ASSERT__(int [(e)?1:-1]) #endif /* Eliminate Microsoft C/C++ compiler warning 4715 */ -- 2.11.4.GIT