]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wfstream.cpp
Delay checking for the requested sash position until the first
[wxWidgets.git] / src / common / wfstream.cpp
index d460dd61abeb5bd2ecf2f97230d7dda949b6dca5..086022626645255f96ddbeedaef1c3d30c3f02d9 100644 (file)
@@ -6,10 +6,10 @@
 // Created:     11/07/98
 // RCS-ID:      $Id$
 // Copyright:   (c) Guilhem Lavaux
-// Licence:     wxWindows license
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "wfstream.h"
 #endif
 
@@ -198,7 +198,7 @@ wxFileStream::wxFileStream(const wxString& fileName)
 wxFFileInputStream::wxFFileInputStream(const wxString& fileName)
   : wxInputStream()
 {
-    m_file = new wxFFile(fileName, "rb");
+    m_file = new wxFFile(fileName, _T("rb"));
     m_file_destroy = TRUE;
 }
 
@@ -265,7 +265,7 @@ off_t wxFFileInputStream::OnSysTell() const
 
 wxFFileOutputStream::wxFFileOutputStream(const wxString& fileName)
 {
-    m_file = new wxFFile(fileName, "w+b");
+    m_file = new wxFFile(fileName, _T("w+b"));
     m_file_destroy = TRUE;
 
     if (!m_file->IsOpened())