equal
deleted
inserted
replaced
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 |