X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/51fdd3daec0d77168c7054b3bebaf86cfb9af43c..62e819ee45059232300d598d9a85f9ad77a23c45:/src/msw/volume.cpp diff --git a/src/msw/volume.cpp b/src/msw/volume.cpp index 2d7fe331b9..6f4ada640d 100644 --- a/src/msw/volume.cpp +++ b/src/msw/volume.cpp @@ -41,8 +41,15 @@ #include "wx/volume.h" -// Win32 headers -#include +#include + +#ifndef SHGetFileInfo +#ifdef UNICODE +#define SHGetFileInfo SHGetFileInfoW +#else +#define SHGetFileInfo SHGetFileInfoA +#endif +#endif #ifndef SHGFI_ATTRIBUTES #define SHGFI_ATTRIBUTES 2048 @@ -415,7 +422,7 @@ wxArrayString wxFSVolume::GetVolumes(int flagsSet, int flagsUnset) { #ifdef UNICODE s_pWNetOpenEnum = (WNetOpenEnumPtr)s_mprLib.GetSymbol(_T("WNetOpenEnumW")); - s_pWNetEnumResource = (WNetEnumResourcePtr)s_mprLib.GetSymbol("WNetEnumResourceW"); + s_pWNetEnumResource = (WNetEnumResourcePtr)s_mprLib.GetSymbol(_T("WNetEnumResourceW")); #else s_pWNetOpenEnum = (WNetOpenEnumPtr)s_mprLib.GetSymbol(_T("WNetOpenEnumA")); s_pWNetEnumResource = (WNetEnumResourcePtr)s_mprLib.GetSymbol(_T("WNetEnumResourceA"));