#ifndef _FILEFN_H_
#define _FILEFN_H_
-#if defined(__GNUG__) && !defined(__APPLE__)
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma interface "filefn.h"
#endif
class WXDLLIMPEXP_BASE wxPathList : public wxStringList
{
public:
+ // avoid GCC warning about virtual functions w/o virtual dtor
+ virtual ~wxPathList() {}
+
// Adds all paths in environment variable
void AddEnvList(const wxString& envVariable);
void Add(const wxString& path);
- // Avoid compiler warning
- wxNode *Add(const wxChar *s) { return wxStringList::Add(s); }
// Find the first full path for which the file exists
wxString FindValidPath(const wxString& filename);
// Find the first full path for which the file exists; ensure it's an
bool Member(const wxString& path);
private:
- DECLARE_DYNAMIC_CLASS(wxPathList)
+ // DECLARE_DYNAMIC_CLASS(wxPathList)
};
#endif