From 592eda8e3feb1bf8d0f85c2baa485323b315f9d9 Mon Sep 17 00:00:00 2001 From: Guenter Knauf Date: Wed, 27 Apr 2011 03:45:18 +0200 Subject: 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. --- lib/idn_win32.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/idn_win32.c') 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) -- cgit v1.2.3