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:
Mattia Barbon
2002-02-16 20:20:41 +00:00
parent f538710f0b
commit 67fade3398
2 changed files with 6 additions and 2 deletions

View File

@@ -56,7 +56,9 @@ bool wxDir::HasFiles(const wxString& spec)
}
// 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)
{

View File

@@ -28,6 +28,8 @@
#endif
#ifndef WX_PRECOMP
#include <wx/icon.h>
#include <wx/intl.h>
#endif // WX_PRECOMP
#include "wx/dir.h"
@@ -388,7 +390,7 @@ wxArrayString wxFSVolume::GetVolumes(int flagsSet, int flagsUnset)
while (*pVol)
{
FilteredAdd(list, pVol, flagsSet, flagsUnset);
pVol = pVol + _tcslen(pVol) + 1;
pVol = pVol + wxStrlen(pVol) + 1;
}
// Cleanup.