]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/fstream.h
FreeBSD patch to sckaddr.cpp; include more files in manual; misc
[wxWidgets.git] / include / wx / fstream.h
index dbe1abb1f8b8046921ed57532a79250deda4ef1e..2c1f320f855f8a23a2ba67b98467d59a146671ab 100644 (file)
@@ -8,22 +8,34 @@
 // Copyright:   (c) Guilhem Lavaux
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
+
 #ifndef _WX_WXFSTREAM_H__
 #define _WX_WXFSTREAM_H__
 
+#ifdef __GNUG__
+#pragma interface "fstream.h"
+#endif
+
 #include <wx/object.h>
 #include <wx/string.h>
 #include <wx/stream.h>
 #include <wx/file.h>
 
+// Disable warnings such as
+// 'wxFileStream' : inherits 'wxFileInputStream::Peek' via dominance
+
+#ifdef _MSC_VER
+#pragma warning(disable:4250)
+#endif
+
 class wxFileStreamBase {
 protected:
   wxFile *m_file;
   bool m_file_destroy;
 };
 
-class wxFileInputStream: virtual public wxInputStream,
-                         virtual public wxFileStreamBase {
+class wxFileInputStream: public virtual wxInputStream,
+                         public virtual wxFileStreamBase {
  public:
   wxFileInputStream(const wxString& fileName);
   virtual ~wxFileInputStream();
@@ -40,8 +52,8 @@ class wxFileInputStream: virtual public wxInputStream,
   off_t DoTellInput() const;
 };
 
-class wxFileOutputStream: virtual public wxOutputStream,
-                          virtual public wxFileStreamBase {
+class wxFileOutputStream: public virtual wxOutputStream,
+                          public virtual wxFileStreamBase {
  public:
   wxFileOutputStream(const wxString& fileName);
   virtual ~wxFileOutputStream();
@@ -69,4 +81,8 @@ class wxFileStream: public wxStream,
   virtual ~wxFileStream();
 };
 
+#ifdef _MSC_VER
+#pragma warning(default:4250)
+#endif
+
 #endif