forked from enlightenment/efl
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:
parent
bd90fff392
commit
56a4d3037e
|
@ -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"
|
||||
;;
|
||||
*)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue