Win32: avoid symbol lookup if UNICODE is defined

This commit is contained in:
Rafaël Carré 2013-10-28 04:39:04 +01:00
parent aa61823432
commit 69e58b5f3f

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.