VirtualBox

Changeset 28794 in vbox


Ignore:
Timestamp:
Apr 27, 2010 7:27:43 AM (15 years ago)
Author:
vboxsync
Message:

iprt/assert.h: Use builtin_offsetof for all gcc 4.x.x variants and flavors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/assert.h

    r28718 r28794  
    327327 * @param   align   The member offset alignment to assert.
    328328 */
    329 #if defined(__GNUC__) && (defined(__cplusplus) || (__GNUC__ * 100 + __GNUC_MINOR__ >= 405))
     329#if defined(__GNUC__)
    330330# if __GNUC__ >= 4
    331331#  define AssertCompileMemberAlignment(type, member, align) \
     
    346346 * @param   off     The expected offset.
    347347 */
    348 #if defined(__GNUC__) && (defined(__cplusplus) || (__GNUC__ * 100 + __GNUC_MINOR__ >= 405))
     348#if defined(__GNUC__)
    349349# if __GNUC__ >= 4
    350350#  define AssertCompileMemberOffset(type, member, off) \
     
    365365 * @param   member2 The second member.
    366366 */
    367 #if defined(__GNUC__) && defined(__cplusplus)
     367#if defined(__GNUC__)
    368368# if __GNUC__ >= 4
    369369#  define AssertCompile2MemberOffsets(type, member1, member2) \
     
    384384 * @param   member2 The second member.
    385385 */
    386 #if defined(__GNUC__) && defined(__cplusplus)
     386#if defined(__GNUC__)
    387387# if __GNUC__ >= 4
    388388#  define AssertCompileAdjacentMembers(type, member1, member2) \
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette