mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
[PSDK]
- Fix GCC version of FIELD_OFFSET in ntdef.h svn path=/trunk/; revision=62538
This commit is contained in:
@@ -199,7 +199,7 @@
|
||||
#ifndef __GNUC__
|
||||
#define FIELD_OFFSET(Type, Field) ((LONG)(LONG_PTR)&(((Type*) 0)->Field))
|
||||
#else
|
||||
#define FIELD_OFFSET(Type, Field) __builtin_offsetof(Type, Field)
|
||||
#define FIELD_OFFSET(Type, Field) ((LONG)__builtin_offsetof(Type, Field))
|
||||
#endif
|
||||
|
||||
/* Returns the type's alignment */
|
||||
|
||||
Reference in New Issue
Block a user