Fix C_ASSERT yet another time.

svn path=/branches/ros-amd64-bringup/; revision=44631
This commit is contained in:
Timo Kreuzer
2009-12-16 23:37:18 +00:00
parent d2a094f50f
commit 1c964da618
4 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ extern "C" {
} _CrtMemState;
#ifndef _STATIC_ASSERT
#define _STATIC_ASSERT(expr) char __static_assert_p(char static_assert[(expr)?1:-1])
#define _STATIC_ASSERT(expr) extern char (*static_assert(void)) [(expr) ? 1 : -1]
#endif
#ifndef _ASSERT
+1 -1
View File
@@ -25,7 +25,7 @@ extern "C" {
#endif
#ifndef _STATIC_ASSERT
#define _STATIC_ASSERT(expr) char __static_assert_p(char static_assert[(expr)?1:-1])
#define _STATIC_ASSERT(expr) extern char (*static_assert(void)) [(expr) ? 1 : -1]
#endif
/* Return codes for _heapwalk() */
+1 -2
View File
@@ -693,8 +693,7 @@ typedef struct _SINGLE_LIST_ENTRY {
//
// C_ASSERT Definition
//
#define C_ASSERT(exp) \
char __c_assert_p(char c_assert[(exp)?1:-1])
#define C_ASSERT(expr) extern char (*c_assert(void)) [(expr) ? 1 : -1]
+1 -2
View File
@@ -229,8 +229,7 @@ typedef BYTE FCHAR;
typedef WORD FSHORT;
typedef DWORD FLONG;
#define C_ASSERT(exp) \
char __c_assert_p(char c_assert[(exp)?1:-1])
#define C_ASSERT(expr) extern char (*c_assert(void)) [(expr) ? 1 : -1]
#include "intrin.h"