Build fix (Watcom).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2005-05-06 18:01:08 +00:00
parent 30928f55c4
commit 4377d3abc8

View File

@@ -1548,16 +1548,17 @@ wxString wxFileName::GetLongPath() const
wxDynamicLibrary dllKernel(_T("kernel32")); wxDynamicLibrary dllKernel(_T("kernel32"));
#ifdef _UNICODE const wxChar* GetLongPathName = _T("GetLongPathName")
#define ADD_STR_SFX(name) L#name L"W" #if wxUSE_UNICODE
#else _T("W");
#define ADD_STR_SFX(name) #name "A" #else // ANSI
#endif _T("A");
#endif // Unicode/ANSI
if ( dllKernel.HasSymbol(ADD_STR_SFX(GetLongPathName)) ) if ( dllKernel.HasSymbol(GetLongPathName) )
{ {
s_pfnGetLongPathName = (GET_LONG_PATH_NAME) s_pfnGetLongPathName = (GET_LONG_PATH_NAME)
dllKernel.GetSymbol(ADD_STR_SFX(GetLongPathName)); dllKernel.GetSymbol(GetLongPathName);
} }
// note that kernel32.dll can be unloaded, it stays in memory // note that kernel32.dll can be unloaded, it stays in memory