mirror of
https://github.com/taglib/taglib.git
synced 2025-06-04 01:28:21 -04:00
Merge pull request #304 from funman/master
Win32: avoid symbol lookup if UNICODE is defined
This commit is contained in:
commit
ee9720a997
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user