diff options
author | Guenter Knauf <lists@gknw.net> | 2011-04-27 03:45:18 +0200 |
---|---|---|
committer | Guenter Knauf <lists@gknw.net> | 2011-04-27 03:53:03 +0200 |
commit | 592eda8e3feb1bf8d0f85c2baa485323b315f9d9 (patch) | |
tree | 5a68f02a761451345e293bfc4f01fc68595bb598 /lib/idn_win32.c | |
parent | 6d013b0aabb89822c5af64dd296c283cece23552 (diff) | |
download | curl-592eda8e3feb1bf8d0f85c2baa485323b315f9d9.tar.gz |
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.
Diffstat (limited to 'lib/idn_win32.c')
-rw-r--r-- | lib/idn_win32.c | 12 |
1 files changed, 6 insertions, 6 deletions
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 <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) |