src/core/windows/SDL_windows.h
changeset 11138 c936a84f05ba
parent 10885 4528f2a99fb7
child 11811 5d94cb6b24d3
equal deleted inserted replaced
11137:15f027d062f8 11138:c936a84f05ba
    33 #undef _WIN32_WINNT
    33 #undef _WIN32_WINNT
    34 #define _WIN32_WINNT  0x501   /* Need 0x410 for AlphaBlend() and 0x500 for EnumDisplayDevices(), 0x501 for raw input */
    34 #define _WIN32_WINNT  0x501   /* Need 0x410 for AlphaBlend() and 0x500 for EnumDisplayDevices(), 0x501 for raw input */
    35 #endif
    35 #endif
    36 
    36 
    37 #include <windows.h>
    37 #include <windows.h>
       
    38 #include <basetyps.h>   /* for REFIID with broken mingw.org headers */
    38 
    39 
    39 /* Routines to convert from UTF8 to native Windows text */
    40 /* Routines to convert from UTF8 to native Windows text */
    40 #if UNICODE
    41 #if UNICODE
    41 #define WIN_StringToUTF8(S) SDL_iconv_string("UTF-8", "UTF-16LE", (char *)(S), (SDL_wcslen(S)+1)*sizeof(WCHAR))
    42 #define WIN_StringToUTF8(S) SDL_iconv_string("UTF-8", "UTF-16LE", (char *)(S), (SDL_wcslen(S)+1)*sizeof(WCHAR))
    42 #define WIN_UTF8ToString(S) (WCHAR *)SDL_iconv_string("UTF-16LE", "UTF-8", (char *)(S), SDL_strlen(S)+1)
    43 #define WIN_UTF8ToString(S) (WCHAR *)SDL_iconv_string("UTF-16LE", "UTF-8", (char *)(S), SDL_strlen(S)+1)