mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
Fix C_ASSERT yet another time.
svn path=/branches/ros-amd64-bringup/; revision=44631
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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() */
|
||||
|
||||
@@ -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]
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user