Alexandre Julliard : include: Fix the C_ASSERT macro for the latest gcc.
Alexandre Julliard
julliard at winehq.org
Wed May 13 10:19:40 CDT 2009
Module: wine
Branch: master
Commit: 5d31eb93771f00f94b907cd19b251adcb907a49d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5d31eb93771f00f94b907cd19b251adcb907a49d
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed May 13 10:32:03 2009 +0200
include: Fix the C_ASSERT macro for the latest gcc.
---
include/winnt.h | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/include/winnt.h b/include/winnt.h
index abcc502..93c7961 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 */
More information about the wine-cvs
mailing list