From: Rafaël Carré Date: Mon, 28 Oct 2013 03:39:04 +0000 (+0100) Subject: Win32: avoid symbol lookup if UNICODE is defined X-Git-Tag: v1.10beta~193^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=69e58b5f3fbb957ed7e55838a14adc52b03c0972;p=taglib Win32: avoid symbol lookup if UNICODE is defined --- diff --git a/taglib/toolkit/tiostream.cpp b/taglib/toolkit/tiostream.cpp index c2ad2912..0284aed6 100644 --- a/taglib/toolkit/tiostream.cpp +++ b/taglib/toolkit/tiostream.cpp @@ -40,8 +40,12 @@ namespace bool supportsUnicode() { +#ifdef UNICODE + return true; +#else const FARPROC p = GetProcAddress(GetModuleHandleA("kernel32"), "CreateFileW"); return (p != NULL); +#endif } // Indicates whether the system supports Unicode file names.