kernel/eka/include/e32def.h
changeset 266 0008ccd16016
parent 0 a41df078684a
child 300 1d28c8722707
equal deleted inserted replaced
259:57b9594f5772 266:0008ccd16016
   441 
   441 
   442 @see TSglQue
   442 @see TSglQue
   443 @see TDblQue
   443 @see TDblQue
   444 */
   444 */
   445 #ifndef _FOFF
   445 #ifndef _FOFF
       
   446 // provide calculation-based version of _FOFF() for when builtin_offsetof()
       
   447 // can't be used
       
   448 #define _FOFF_DYNAMIC(c,f)	(((TInt)&(((c *)0x1000)->f))-0x1000)
   446 #if __GNUC__ < 4
   449 #if __GNUC__ < 4
   447 #define _FOFF(c,f)			(((TInt)&(((c *)0x1000)->f))-0x1000)
   450 #define _FOFF(c,f)			_FOFF_DYNAMIC(c,f)
   448 #else
   451 #else
   449 #define _FOFF(c,f)			__builtin_offsetof(c,f)
   452 #define _FOFF(c,f)			(__builtin_offsetof(c,f))
   450 #endif
   453 #endif
   451 #endif
   454 #endif
   452 
   455 
   453 
   456 
   454 
   457