mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
modified include/psdk/ntdef.h
Make C_ASSERT standards-compliant. Hopefully fixed for good svn path=/trunk/; revision=33120
This commit is contained in:
parent
468e944166
commit
5e675fb7e6
1 changed files with 6 additions and 1 deletions
|
@ -130,6 +130,11 @@ typedef LIST_ENTRY64 *PLIST_ENTRY64;
|
|||
#define MAXUSHORT 0xffff
|
||||
#define MAXULONG 0xffffffff
|
||||
#define MAXLONGLONG (0x7fffffffffffffffLL)
|
||||
#define C_ASSERT(e) typedef char __C_ASSERT__[(e)?1:-1]
|
||||
|
||||
#define __C_ASSERT_JOIN(X, Y) __C_ASSERT_DO_JOIN(X, Y)
|
||||
#define __C_ASSERT_DO_JOIN(X, Y) __C_ASSERT_DO_JOIN2(X, Y)
|
||||
#define __C_ASSERT_DO_JOIN2(X, Y) X##Y
|
||||
|
||||
#define C_ASSERT(e) typedef char __C_ASSERT_JOIN(__C_ASSERT__, __LINE__)[(e) ? 1 : -1]
|
||||
|
||||
#endif /* _NTDEF_H */
|
||||
|
|
Loading…
Reference in a new issue