VirtualBox

Changeset 62621 in vbox for trunk/src


Ignore:
Timestamp:
Jul 28, 2016 2:41:44 PM (8 years ago)
Author:
vboxsync
Message:

Devices: Fixed 3 instances of incorrect preprocessor macro usage caught by the C4668 MSC warning.

Location:
trunk/src/VBox/Devices
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevAHCI.cpp

    r62506 r62621  
    988988# endif
    989989
    990 #elif IN_RING0
     990#elif defined(IN_RING0)
    991991
    992992# ifdef LOG_USE_C99
     
    998998# endif
    999999
    1000 #elif IN_RC
     1000#elif defined(IN_RC)
    10011001
    10021002# ifdef LOG_USE_C99
  • trunk/src/VBox/Devices/USB/DevOHCI.cpp

    r62502 r62621  
    12411241{
    12421242    ohciPhysRead(pThis, Addr, pau32s, c32s * sizeof(uint32_t));
    1243 #if BYTE_ORDER != LITTLE_ENDIAN
     1243#ifndef RT_LITTLE_ENDIAN
    12441244    for(int i = 0; i < c32s; i++)
    12451245        pau32s[i] = RT_H2LE_U32(pau32s[i]);
     
    12521252DECLINLINE(void) ohciPutDWords(POHCI pThis, uint32_t Addr, const uint32_t *pau32s, int cu32s)
    12531253{
    1254 #if BYTE_ORDER == LITTLE_ENDIAN
     1254#ifdef RT_LITTLE_ENDIAN
    12551255    ohciPhysWrite(pThis, Addr, pau32s, cu32s << 2);
    12561256#else
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