VirtualBox

Changeset 68615 in vbox


Ignore:
Timestamp:
Sep 3, 2017 3:51:32 PM (7 years ago)
Author:
vboxsync
Message:

iprt/assert.h: Watcom is picky about RTASSERT_OFFSET_OF too, at least in C++ code.

File:
1 edited

Legend:

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

    r65948 r68615  
    332332#elif (defined(__IBMC__) || defined(__IBMCPP__)) && defined(RT_OS_OS2)
    333333# define RTASSERT_OFFSET_OF(a_Type, a_Member)   __offsetof(a_Type, a_Member)
     334#elif (defined(__WATCOMC__) && defined(__cplusplus))
     335# define RTASSERT_OFFSET_OF(a_Type, a_Member)   __offsetof(a_Type, a_Member)
    334336#else
    335337# define RTASSERT_OFFSET_OF(a_Type, a_Member)   RT_OFFSETOF(a_Type, a_Member)
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