winnt.h: Use the same C_ASSERT version on all compilers.

It works on MSCV as well.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2020-04-23 15:48:53 +02:00 committed by Alexandre Julliard
parent 3acd943275
commit b1aba79b8b
1 changed files with 1 additions and 5 deletions

View File

@ -388,11 +388,7 @@ extern "C" {
/* Compile time assertion */
#if defined(_MSC_VER)
# define C_ASSERT(e) typedef char __C_ASSERT__[(e)?1:-1]
#else
# define C_ASSERT(e) extern void __C_ASSERT__(int [(e)?1:-1])
#endif
#define C_ASSERT(e) extern void __C_ASSERT__(int [(e)?1:-1])
/* Eliminate Microsoft C/C++ compiler warning 4715 */
#if defined(_MSC_VER) && (_MSC_VER > 1200)