Merge pull request #304 from funman/master

Win32: avoid symbol lookup if UNICODE is defined
This commit is contained in:
Lukáš Lalinský 2013-10-28 01:12:48 -07:00
commit ee9720a997

View 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.