From: Guenter Knauf Date: Wed, 27 Apr 2011 01:45:18 +0000 (+0200) Subject: Windows native IDN fixes. X-Git-Tag: curl-7_21_7~162 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=592eda8e3feb1bf8d0f85c2baa485323b315f9d9;p=curl Windows native IDN fixes. For now provide prototypes instead of including the non-standard normalisation.h which is only available in the "Internationalized Domain Names Mitigation APIs" download. --- diff --git a/lib/idn_win32.c b/lib/idn_win32.c index f2df51675..0c791ae60 100644 --- a/lib/idn_win32.c +++ b/lib/idn_win32.c @@ -25,14 +25,14 @@ ***************************************************************************/ #if defined(WIN32) && defined(USE_WIN32_IDN) #include -#ifdef HAVE_NORMALIZATION_H -#define __in -#define __in_ecount(x) -#define __out_ecount(x) -#include -#endif #include #include + +#ifdef WANT_IDN_PROTOTYPES +WINBASEAPI int WINAPI IdnToAscii(DWORD, LPCWSTR, int, LPWSTR, int); +WINBASEAPI int WINAPI IdnToUnicode(DWORD, LPCWSTR, int, LPWSTR, int); +#endif + #define IDN_MAX_LENGTH 255 static wchar_t *_curl_win32_UTF8_to_wchar(const char *str_utf8)