]> granicus.if.org Git - taglib/commitdiff
Win32: avoid symbol lookup if UNICODE is defined
authorRafaël Carré <funman@videolan.org>
Mon, 28 Oct 2013 03:39:04 +0000 (04:39 +0100)
committerRafaël Carré <funman@videolan.org>
Mon, 28 Oct 2013 03:39:04 +0000 (04:39 +0100)
taglib/toolkit/tiostream.cpp

index c2ad291252b427850fea9576a581867b1c0b12f2..0284aed6bb725ae48efd2d0459947a42623e4b2c 100644 (file)
@@ -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.