X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e2478fde622a16d25c66690af353dfdc37e7b582..cb73e6001f891ae46b12a1e4ca39b93649cb6099:/src/msw/volume.cpp diff --git a/src/msw/volume.cpp b/src/msw/volume.cpp index 9cfda8856f..2b4f329138 100644 --- a/src/msw/volume.cpp +++ b/src/msw/volume.cpp @@ -17,7 +17,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "fsvolume.h" #endif @@ -30,7 +30,9 @@ #if wxUSE_FSVOLUME #ifndef WX_PRECOMP - #include "wx/icon.h" + #if wxUSE_GUI + #include "wx/icon.h" + #endif #include "wx/intl.h" #endif // WX_PRECOMP @@ -44,7 +46,7 @@ #include #include "wx/msw/missing.h" -#ifdef __WXBASE__ +#if wxUSE_BASE //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // Dynamic library function defs. @@ -287,9 +289,9 @@ static void BuildListFromNN(wxArrayString& list, NETRESOURCE* pResSrc, // Function: CompareFcn // Purpose: Used to sort the NN list alphabetically, case insensitive. //============================================================================= -static int CompareFcn(const wxString& first, const wxString& second) +static int CompareFcn(wxString* first, wxString* second) { - return wxStricmp(first.c_str(), second.c_str()); + return wxStricmp(first->c_str(), second->c_str()); } // CompareFcn //============================================================================= @@ -354,7 +356,7 @@ static bool BuildRemoteList(wxArrayString& list, NETRESOURCE* pResSrc, { // Found the element. Remove it or mark it mounted. if (flagsUnset & wxFS_VOL_MOUNTED) - list.Remove(iList); + list.RemoveAt(iList); else s_fileInfo[list[iList]].m_flags |= wxFS_VOL_MOUNTED; @@ -538,7 +540,7 @@ int wxFSVolumeBase::GetFlags() const return itr->second.m_flags; } // GetFlags -#endif // __WXBASE__ +#endif // wxUSE_BASE // ============================================================================ // wxFSVolume