Changeset 3666 in vbox for trunk/src/VBox/Devices/PC/DrvACPI.cpp
- Timestamp:
- Jul 17, 2007 6:33:02 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DrvACPI.cpp
r2981 r3666 25 25 #define LOG_GROUP LOG_GROUP_DRV_ACPI 26 26 27 #ifdef __WIN__27 #ifdef RT_OS_WINDOWS 28 28 #include <windows.h> 29 29 #endif … … 38 38 #include <iprt/string.h> 39 39 40 #ifdef __LINUX__40 #ifdef RT_OS_LINUX 41 41 #include <iprt/string.h> 42 42 #include <sys/types.h> … … 99 99 PDMACPIPOWERSOURCE *pPowerSource) 100 100 { 101 #if defined( __WIN__)101 #if defined(RT_OS_WINDOWS) 102 102 SYSTEM_POWER_STATUS powerStatus; 103 103 if (GetSystemPowerStatus(&powerStatus)) … … 127 127 *pPowerSource = PDM_ACPI_POWER_SOURCE_UNKNOWN; 128 128 } 129 #elif defined ( __LINUX__) /* !__WIN__*/129 #elif defined (RT_OS_LINUX) /* !RT_OS_WINDOWS */ 130 130 DIR *dfd; 131 131 struct dirent *dp; … … 183 183 fclose(statusFile); 184 184 } 185 #else /* ! __LINUX__either - what could this be? */185 #else /* !RT_OS_LINUX either - what could this be? */ 186 186 *pPowerSource = PDM_ACPI_POWER_SOURCE_OUTLET; 187 #endif /* ! __WIN__*/187 #endif /* !RT_OS_WINDOWS */ 188 188 return VINF_SUCCESS; 189 189 } … … 203 203 *pu32PresentRate = ~0; /* present rate is unknown */ 204 204 205 #if defined( __WIN__)205 #if defined(RT_OS_WINDOWS) 206 206 SYSTEM_POWER_STATUS powerStatus; 207 207 if (GetSystemPowerStatus(&powerStatus)) … … 228 228 GetLastError())); 229 229 } 230 #elif defined( __LINUX__)230 #elif defined(RT_OS_LINUX) 231 231 DIR *dfd; 232 232 struct dirent *dp; … … 417 417 *pu32PresentRate = (uint32_t)(((float)presentRateTotal / (float)maxCapacityTotal) * 1000); 418 418 } 419 #endif /* __LINUX__*/419 #endif /* RT_OS_LINUX */ 420 420 return VINF_SUCCESS; 421 421 }
Note:
See TracChangeset
for help on using the changeset viewer.