* include/winnt.h, include/ddk/winddk.h (FIELD_OFFSET):
Compile with recent C++ compiler such as gcc 3.4. * include/ddk/winddk.h: Ditto.
This commit is contained in:
@ -3967,9 +3967,14 @@ KefReleaseSpinLockFromDpcLevel(
|
||||
* IN PCHAR Field);
|
||||
*/
|
||||
#ifndef FIELD_OFFSET
|
||||
#ifdef __cplusplus
|
||||
#define FIELD_OFFSET(Type, Field) (reinterpret_cast<LONG> \
|
||||
(&reinterpret_cast<char&>(static_cast<Type *>(0)->Field)))
|
||||
#else
|
||||
#define FIELD_OFFSET(Type, Field) \
|
||||
((LONG) (&(((Type *) 0)->Field)))
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
* PVOID
|
||||
|
Reference in New Issue
Block a user