mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
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.
This commit is contained in:
parent
6d013b0aab
commit
592eda8e3f
@ -25,14 +25,14 @@
|
|||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
#if defined(WIN32) && defined(USE_WIN32_IDN)
|
#if defined(WIN32) && defined(USE_WIN32_IDN)
|
||||||
#include <windows.h>
|
#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 <stdio.h>
|
||||||
#include <tchar.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
|
#define IDN_MAX_LENGTH 255
|
||||||
|
|
||||||
static wchar_t *_curl_win32_UTF8_to_wchar(const char *str_utf8)
|
static wchar_t *_curl_win32_UTF8_to_wchar(const char *str_utf8)
|
||||||
|
Loading…
Reference in New Issue
Block a user