simplified #ifdef

This commit is contained in:
Karel Miko 2017-03-09 17:40:12 +01:00
parent 7ab76a464e
commit 02b92405e2

View File

@ -51,7 +51,7 @@ int der_utf8_valid_char(const wchar_t c)
#if !defined(LTC_WCHAR_MAX) || LTC_WCHAR_MAX > 0xFFFF
if (c > 0x10FFFF) return 0;
#endif
#if !defined(LTC_WCHAR_MAX) || LTC_WCHAR_MAX != 0xFFFF && LTC_WCHAR_MAX != 0xFFFFFFFF
#if LTC_WCHAR_MAX != 0xFFFF && LTC_WCHAR_MAX != 0xFFFFFFFF
if (c < 0) return 0;
#endif
return 1;