Author: tfaber
Date: Fri Mar 21 07:24:03 2014
New Revision: 62538
URL:
http://svn.reactos.org/svn/reactos?rev=62538&view=rev
Log:
[PSDK]
- Fix GCC version of FIELD_OFFSET in ntdef.h
Modified:
trunk/reactos/include/psdk/ntdef.h
Modified: trunk/reactos/include/psdk/ntdef.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/ntdef.h?rev=6…
==============================================================================
--- trunk/reactos/include/psdk/ntdef.h [iso-8859-1] (original)
+++ trunk/reactos/include/psdk/ntdef.h [iso-8859-1] Fri Mar 21 07:24:03 2014
@@ -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 */