// Created: 2001/12/09
// RCS-ID: $Id$
// Copyright: (c) 1999 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
-// (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
-// Licence: wxWindows license
+// (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// ============================================================================
// headers
// ----------------------------------------------------------------------------
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "dir.h"
#endif
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();
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 )