From 69e58b5f3fbb957ed7e55838a14adc52b03c0972 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Mon, 28 Oct 2013 04:39:04 +0100 Subject: [PATCH] Win32: avoid symbol lookup if UNICODE is defined --- taglib/toolkit/tiostream.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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.