Avoid errors in evutil.c when building with _UNICODE defined

This commit is contained in:
Brodie Thiesfield 2010-03-08 13:46:04 -05:00 committed by Nick Mathewson
parent 2c2618d858
commit b677032ba2

View File

@ -1277,7 +1277,9 @@ evutil_gai_strerror(int err)
case EVUTIL_EAI_SYSTEM:
return "system error";
default:
#ifdef USE_NATIVE_GETADDRINFO
#if defined(USE_NATIVE_GETADDRINFO) && defined(WIN32)
return gai_strerrorA(err);
#elif defined(USE_NATIVE_GETADDRINFO)
return gai_strerror(err);
#else
return "Unknown error code";