Fix Cygwin and MinGW compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14260 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -56,7 +56,9 @@ bool wxDir::HasFiles(const wxString& spec)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// we have a (much) faster version for Unix
|
// we have a (much) faster version for Unix
|
||||||
#if !defined(__UNIX_LIKE__) || defined(__WXMAC__)
|
// MBN: Cygwin should use the Unix version, but with the current build sistem
|
||||||
|
// this is painful
|
||||||
|
#if defined(__CYGWIN__) || !defined(__UNIX_LIKE__) || defined(__WXMAC__)
|
||||||
|
|
||||||
bool wxDir::HasSubDirs(const wxString& spec)
|
bool wxDir::HasSubDirs(const wxString& spec)
|
||||||
{
|
{
|
||||||
|
@@ -28,6 +28,8 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
|
#include <wx/icon.h>
|
||||||
|
#include <wx/intl.h>
|
||||||
#endif // WX_PRECOMP
|
#endif // WX_PRECOMP
|
||||||
|
|
||||||
#include "wx/dir.h"
|
#include "wx/dir.h"
|
||||||
@@ -388,7 +390,7 @@ wxArrayString wxFSVolume::GetVolumes(int flagsSet, int flagsUnset)
|
|||||||
while (*pVol)
|
while (*pVol)
|
||||||
{
|
{
|
||||||
FilteredAdd(list, pVol, flagsSet, flagsUnset);
|
FilteredAdd(list, pVol, flagsSet, flagsUnset);
|
||||||
pVol = pVol + _tcslen(pVol) + 1;
|
pVol = pVol + wxStrlen(pVol) + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cleanup.
|
// Cleanup.
|
||||||
|
Reference in New Issue
Block a user