VirtualBox

Ignore:
Timestamp:
Jul 17, 2007 6:33:02 AM (17 years ago)
Author:
vboxsync
Message:

replace underscore symbols in Devices/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DrvACPI.cpp

    r2981 r3666  
    2525#define LOG_GROUP LOG_GROUP_DRV_ACPI
    2626
    27 #ifdef __WIN__
     27#ifdef RT_OS_WINDOWS
    2828#include <windows.h>
    2929#endif
     
    3838#include <iprt/string.h>
    3939
    40 #ifdef __LINUX__
     40#ifdef RT_OS_LINUX
    4141#include <iprt/string.h>
    4242#include <sys/types.h>
     
    9999                                                 PDMACPIPOWERSOURCE *pPowerSource)
    100100{
    101 #if defined(__WIN__)
     101#if defined(RT_OS_WINDOWS)
    102102    SYSTEM_POWER_STATUS powerStatus;
    103103    if (GetSystemPowerStatus(&powerStatus))
     
    127127        *pPowerSource = PDM_ACPI_POWER_SOURCE_UNKNOWN;
    128128    }
    129 #elif defined (__LINUX__) /* !__WIN__ */
     129#elif defined (RT_OS_LINUX) /* !RT_OS_WINDOWS */
    130130    DIR *dfd;
    131131    struct dirent *dp;
     
    183183        fclose(statusFile);
    184184    }
    185 #else /* !__LINUX__ either - what could this be? */
     185#else /* !RT_OS_LINUX either - what could this be? */
    186186    *pPowerSource = PDM_ACPI_POWER_SOURCE_OUTLET;
    187 #endif /* !__WIN__ */
     187#endif /* !RT_OS_WINDOWS */
    188188    return VINF_SUCCESS;
    189189}
     
    203203    *pu32PresentRate        = ~0;      /* present rate is unknown */
    204204
    205 #if defined(__WIN__)
     205#if defined(RT_OS_WINDOWS)
    206206    SYSTEM_POWER_STATUS powerStatus;
    207207    if (GetSystemPowerStatus(&powerStatus))
     
    228228                        GetLastError()));
    229229    }
    230 #elif defined(__LINUX__)
     230#elif defined(RT_OS_LINUX)
    231231    DIR *dfd;
    232232    struct dirent *dp;
     
    417417        *pu32PresentRate = (uint32_t)(((float)presentRateTotal / (float)maxCapacityTotal) * 1000);
    418418    }
    419 #endif /* __LINUX__ */
     419#endif /* RT_OS_LINUX */
    420420    return VINF_SUCCESS;
    421421}
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