X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/34885a147bdca70749ac22737b55cbc6e0558b4a..f4728e4f5b6bcca3070b59fad3eaf520c3b69390:/src/mgl/dirmgl.cpp diff --git a/src/mgl/dirmgl.cpp b/src/mgl/dirmgl.cpp index b6ce6e5ca0..e7c59d21b4 100644 --- a/src/mgl/dirmgl.cpp +++ b/src/mgl/dirmgl.cpp @@ -6,8 +6,8 @@ // Created: 2001/12/09 // RCS-ID: $Id$ // Copyright: (c) 1999 Vadim Zeitlin -// (c) 2001 SciTech Software, Inc. (www.scitechsoft.com) -// Licence: wxWindows license +// (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com) +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -18,7 +18,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "dir.h" #endif @@ -61,7 +61,7 @@ public: bool IsOk() const { return m_dir != NULL; } - void SetFileSpec(const wxString& filespec) { m_filespec = filespec; } + void SetFileSpec(const wxString& filespec); void SetFlags(int flags) { m_flags = flags; } void Rewind(); @@ -106,6 +106,16 @@ wxDirData::~wxDirData() PM_findClose(m_dir); } +void wxDirData::SetFileSpec(const wxString& filespec) +{ +#ifdef __DOS__ + if ( filespec.IsEmpty() ) + m_filespec = _T("*.*"); + else +#endif + m_filespec = filespec; +} + void wxDirData::Rewind() { if ( m_dir )