Evil: really drop Windows XP support

Summary: set WINVER macro to at least Vista macro value

Test Plan: compilation

Reviewers: cedric

Subscribers: jpeg

Differential Revision: https://phab.enlightenment.org/D5369
This commit is contained in:
Vincent Torri 2017-10-24 16:12:09 -07:00 committed by Cedric BAIL
parent bd90fff392
commit 56a4d3037e
2 changed files with 2 additions and 4 deletions

View File

@ -31,11 +31,11 @@ AC_MSG_RESULT([${_winver}])
case "${_winver}" in
vista)
EFL_WINDOWS_VERSION_CFLAGS="-D_WIN32_WINNT=0x0600"
EFL_WINDOWS_VERSION_CFLAGS="-D_WIN32_WINNT=0x0600 -DWINVER=0x0600"
_efl_windows_version="Windows Vista"
;;
win7)
EFL_WINDOWS_VERSION_CFLAGS="-D_WIN32_WINNT=0x0601"
EFL_WINDOWS_VERSION_CFLAGS="-D_WIN32_WINNT=0x0601 -DWINVER=0x0601"
_efl_windows_version="Windows 7"
;;
*)

View File

@ -90,9 +90,7 @@ evil_utf16_to_utf8(const wchar_t *text16)
if (!text16)
return NULL;
#if WINVER >= 0x0600
flag = WC_ERR_INVALID_CHARS;
#endif
size8 = WideCharToMultiByte(CP_UTF8, flag, text16, -1, NULL, 0, NULL, NULL);
if (size8 == 0)