diff --git a/include/wx/fs_mem.h b/include/wx/fs_mem.h index 7d82b005d8..8b377103f1 100644 --- a/include/wx/fs_mem.h +++ b/include/wx/fs_mem.h @@ -69,7 +69,9 @@ class WXDLLIMPEXP_CORE wxMemoryFSHandler : public wxMemoryFSHandlerBase public: // bring the base class versions into the scope, otherwise they would be // inaccessible in wxMemoryFSHandler +#if !defined(__GNUG__) || (__GNUG__ > 2) using wxMemoryFSHandlerBase::AddFile; +#endif #if wxUSE_IMAGE static void AddFile(const wxString& filename, wxImage& image, long type);