diff options
author | Yang Tse <yangsita@gmail.com> | 2011-07-26 17:23:27 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2011-07-26 17:23:27 +0200 |
commit | f1586cb4775681810afd8e6626e7842d459f3b85 (patch) | |
tree | 88590b6cd73744ed6c7ffe78a8ccafe3dfb1b90a /lib/idn_win32.c | |
parent | 983f3d70f9610a35f279b656a3322087e272f2a6 (diff) |
stdio.h, stdlib.h, string.h, stdarg.h and ctype.h inclusion done in setup_once.h
Diffstat (limited to 'lib/idn_win32.c')
-rw-r--r-- | lib/idn_win32.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/idn_win32.c b/lib/idn_win32.c index 96d3f0959..70286c0fd 100644 --- a/lib/idn_win32.c +++ b/lib/idn_win32.c @@ -19,13 +19,15 @@ * KIND, either express or implied. * ***************************************************************************/ -/*************************************************************************** - * IDN Implementation using windows native APIs - * Pierre Joye <pierre@php.net> - ***************************************************************************/ -#if defined(WIN32) && defined(USE_WIN32_IDN) -#include <windows.h> -#include <stdio.h> + + /* + * IDN conversions using Windows kernel32 and normaliz libraries. + */ + +#include "setup.h" + +#ifdef USE_WIN32_IDN + #include <tchar.h> #ifdef WANT_IDN_PROTOTYPES @@ -121,7 +123,5 @@ int curl_win32_ascii_to_idn(const char *in, size_t in_len, char **out_utf8) } return 1; } -#else -typedef int dummy; /* because ISO C forbids an empty translation unit! */ -#endif - /* WIN32 */ + +#endif /* USE_WIN32_IDN */ |