[vlc-commits] url: assume IDN is supported (Win32)
Rémi Denis-Courmont
git at videolan.org
Sun Dec 3 17:13:16 CET 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Dec 3 18:08:58 2017 +0200| [7ae00603526cab0be8ca8c2014cbb3ab0632575c] | committer: Rémi Denis-Courmont
url: assume IDN is supported (Win32)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7ae00603526cab0be8ca8c2014cbb3ab0632575c
---
src/text/url.c | 24 ------------------------
1 file changed, 24 deletions(-)
diff --git a/src/text/url.c b/src/text/url.c
index 8ae24b7887..dc983c8861 100644
--- a/src/text/url.c
+++ b/src/text/url.c
@@ -832,30 +832,6 @@ char *vlc_uri_fixup(const char *str)
#elif defined (_WIN32)
# include <windows.h>
# include <vlc_charset.h>
-
-# if (_WIN32_WINNT < _WIN32_WINNT_VISTA)
-# define IDN_ALLOW_UNASSIGNED 0x01
-static int IdnToAscii(DWORD flags, LPCWSTR str, int len, LPWSTR buf, int size)
-{
- HMODULE h = LoadLibrary(_T("Normaliz.dll"));
- if (h == NULL)
- {
- errno = ENOSYS;
- return 0;
- }
-
- int (WINAPI *IdnToAsciiReal)(DWORD, LPCWSTR, int, LPWSTR, int);
- int ret = 0;
-
- IdnToAsciiReal = GetProcAddress(h, "IdnToAscii");
- if (IdnToAsciiReal != NULL)
- ret = IdnToAsciiReal(flags, str, len, buf, size);
- else
- errno = ENOSYS;
- FreeLibrary(h);
- return ret;
-}
-# endif
#endif
/**
More information about the vlc-commits
mailing list