kernel/eka/include/e32def.h
branchGCC_SURGE
changeset 143 de794338254b
parent 104 466a0df5c15a
equal deleted inserted replaced
142:32128eb83e75 143:de794338254b
   441 
   441 
   442 @see TSglQue
   442 @see TSglQue
   443 @see TDblQue
   443 @see TDblQue
   444 */
   444 */
   445 #ifndef _FOFF
   445 #ifndef _FOFF
       
   446 #define _FOFF_DYNAMIC(c,f)	(((TInt)&(((c *)0x1000)->f))-0x1000)		// can be a runtime calculation if f is not sufficiently constant
   446 #if __GNUC__ < 4
   447 #if __GNUC__ < 4
   447 #define _FOFF(c,f)			(((TInt)&(((c *)0x1000)->f))-0x1000)
   448 #define _FOFF(c,f)			_FOFF_DYNAMIC(c,f)
   448 #else
   449 #else
   449 #define _FOFF(c,f)			(__builtin_offsetof(c,f))
   450 #define _FOFF(c,f)			(__builtin_offsetof(c,f))
   450 #endif
   451 #endif
   451 #endif
   452 #endif
   452 
   453