Changeset 1448 in vbox for trunk/include/iprt
- Timestamp:
- Mar 13, 2007 4:12:21 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/cdefs.h
r658 r1448 776 776 * @param member Member. 777 777 */ 778 #define RT_OFFSETOF(type, member) ( (int)(uintptr_t)&( ((type *)(void *)0)->member) ) 778 #if defined(__GNUC__) && defined(__cplusplus) 779 # define RT_OFFSETOF(type, member) ( (int)__builtin_offsetof(type, member) ) 780 #else 781 # define RT_OFFSETOF(type, member) ( (int)(uintptr_t)&( ((type *)(void *)0)->member) ) 782 #endif 779 783 780 784 /** @def RT_SIZEOFMEMB
Note:
See TracChangeset
for help on using the changeset viewer.