From 4377d3abc8cee8f0ac3cd432e653b33be2dca7ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?W=C5=82odzimierz=20Skiba?= Date: Fri, 6 May 2005 18:01:08 +0000 Subject: [PATCH] Build fix (Watcom). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/filename.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/common/filename.cpp b/src/common/filename.cpp index 80ed64811c..8a9cf92f5c 100644 --- a/src/common/filename.cpp +++ b/src/common/filename.cpp @@ -1548,16 +1548,17 @@ wxString wxFileName::GetLongPath() const wxDynamicLibrary dllKernel(_T("kernel32")); -#ifdef _UNICODE - #define ADD_STR_SFX(name) L#name L"W" -#else - #define ADD_STR_SFX(name) #name "A" -#endif + const wxChar* GetLongPathName = _T("GetLongPathName") +#if wxUSE_UNICODE + _T("W"); +#else // ANSI + _T("A"); +#endif // Unicode/ANSI - if ( dllKernel.HasSymbol(ADD_STR_SFX(GetLongPathName)) ) + if ( dllKernel.HasSymbol(GetLongPathName) ) { 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