VirtualBox

Changeset 34727 in vbox for trunk


Ignore:
Timestamp:
Dec 5, 2010 8:08:24 PM (14 years ago)
Author:
vboxsync
Message:

gcc-4.5 does not compile this assertion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/HGSMI/HGSMI.h

    r30257 r34727  
    315315DECLINLINE(HGSMIOFFSET) HGSMIHeapHandleLocationOffset(HGSMIHEAP *pHeap)
    316316{
    317     AssertCompileNS((uintptr_t)NIL_RTHEAPSIMPLE == (uintptr_t)NIL_RTHEAPOFFSET);
     317#if (__GNUC__ * 100 + __GNUC_MINOR__) < 405
     318    /* does not work with gcc-4.5 */
     319    AssertCompile((uintptr_t)NIL_RTHEAPSIMPLE == (uintptr_t)NIL_RTHEAPOFFSET);
     320#endif
    318321    return pHeap->u.hPtr != NIL_RTHEAPSIMPLE
    319322        ? (HGSMIOFFSET)(pHeap->area.pu8Base - (uint8_t*)pHeap->u.hPtr)
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