Changeset 55071 in vbox
- Timestamp:
- Apr 1, 2015 1:09:10 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 99362
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/cdefs.h
r54455 r55071 1534 1534 * compiler stuff and thus can use variables in arrays the structure may 1535 1535 * contain. This is useful to determine the sizes of structures ending 1536 * with a variable length field. 1536 * with a variable length field. For gcc >= 4.4 see @bugref{7775}. 1537 1537 * 1538 1538 * @returns offset into the structure of the specified member. signed. … … 1540 1540 * @param member Member. 1541 1541 */ 1542 #if defined(__GNUC__) && defined(__cplusplus) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))1542 #if defined(__GNUC__) && defined(__cplusplus) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) 1543 1543 # define RT_OFFSETOF(type, member) ( (int)(uintptr_t)&( ((type *)(void *)0x1000)->member) - 0x1000 ) 1544 1544 #else … … 1552 1552 * compiler stuff and thus can use variables in arrays the structure may 1553 1553 * contain. This is useful to determine the sizes of structures ending 1554 * with a variable length field. 1554 * with a variable length field. For gcc >= 4.4 see @bugref{7775}. 1555 1555 * 1556 1556 * @returns offset into the structure of the specified member. unsigned. … … 1558 1558 * @param member Member. 1559 1559 */ 1560 #if defined(__GNUC__) && defined(__cplusplus) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))1560 #if defined(__GNUC__) && defined(__cplusplus) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) 1561 1561 # define RT_UOFFSETOF(type, member) ( (uintptr_t)&( ((type *)(void *)0x1000)->member) - 0x1000 ) 1562 1562 #else
Note:
See TracChangeset
for help on using the changeset viewer.