Mercurial > sdl-ios-xcode
comparison src/power/windows/SDL_syspower.c @ 5092:327f181542f1
Include windows.h in a single point in the source, so we can be consistent about the definition of UNICODE and have core utility functions for Windows that all modules can share.
I think this also fixes the bug relating to non-latin characters in filenames, since UNICODE wasn't defined in SDL_rwops.c
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 24 Jan 2011 21:20:30 -0800 |
parents | c2539ff054c8 |
children | b530ef003506 |
comparison
equal
deleted
inserted
replaced
5091:79bd1e289005 | 5092:327f181542f1 |
---|---|
22 #include "SDL_config.h" | 22 #include "SDL_config.h" |
23 | 23 |
24 #ifndef SDL_POWER_DISABLED | 24 #ifndef SDL_POWER_DISABLED |
25 #ifdef SDL_POWER_WINDOWS | 25 #ifdef SDL_POWER_WINDOWS |
26 | 26 |
27 #define WIN32_LEAN_AND_MEAN | 27 #include "../../core/windows/SDL_windows.h" |
28 #include <windows.h> | |
29 | 28 |
30 #include "SDL_power.h" | 29 #include "SDL_power.h" |
31 | 30 |
32 SDL_bool | 31 SDL_bool |
33 SDL_GetPowerInfo_Windows(SDL_PowerState * state, int *seconds, int *percent) | 32 SDL_GetPowerInfo_Windows(SDL_PowerState * state, int *seconds, int *percent) |