Windows native IDN fixes.
authorGuenter Knauf <lists@gknw.net>
Wed, 27 Apr 2011 01:45:18 +0000 (03:45 +0200)
committerGuenter Knauf <lists@gknw.net>
Wed, 27 Apr 2011 01:53:03 +0000 (03:53 +0200)
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

index f2df516756989685dc4c42c44172b0a0eb9df194..0c791ae6079110ab443b434e521497f3b8d34964 100644 (file)
  ***************************************************************************/
 #if defined(WIN32) && defined(USE_WIN32_IDN)
 #include <windows.h>
-#ifdef HAVE_NORMALIZATION_H
-#define __in
-#define __in_ecount(x)
-#define __out_ecount(x)
-#include <normalization.h>
-#endif
 #include <stdio.h>
 #include <tchar.h>
+
+#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)