]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/txtstrm.cpp
small fix for mingw32 compilation
[wxWidgets.git] / src / common / txtstrm.cpp
index 9617ae5e215e7f6dcce66d07de7154710eace511..e0acaeb66c9bf62235eba8c9117a5fa6d46e593b 100644 (file)
@@ -23,6 +23,7 @@
 #if wxUSE_STREAMS
 
 #include "wx/txtstrm.h"
+#include <ctype.h>
 
 wxTextInputStream::wxTextInputStream(wxInputStream& s)
   : m_input(&s)
@@ -189,9 +190,12 @@ wxTextInputStream& wxTextInputStream::operator>>(wxString& line)
   return *this;
 }
 
-wxTextInputStream& wxTextInputStream::operator>>(wxInt8& c)
+wxTextInputStream& wxTextInputStream::operator>>(wxChar& c)
 {
-  c = (wxInt8)Read8();
+  // TODO
+/*
+  m_input->Read(&c, sizeof(wxChar));
+*/
   return *this;
 }
 
@@ -207,12 +211,6 @@ wxTextInputStream& wxTextInputStream::operator>>(wxInt32& i)
   return *this;
 }
 
-wxTextInputStream& wxTextInputStream::operator>>(wxUint8& c)
-{
-  c = Read8();
-  return *this;
-}
-
 wxTextInputStream& wxTextInputStream::operator>>(wxUint16& i)
 {
   i = Read16();
@@ -300,9 +298,11 @@ wxTextOutputStream& wxTextOutputStream::operator<<(const wxString& string)
   return *this;
 }
 
-wxTextOutputStream& wxTextOutputStream::operator<<(wxInt8 c)
+wxTextOutputStream& wxTextOutputStream::operator<<(wxChar c)
 {
-  Write8((wxUint8)c);
+  wxString tmp_str;
+  tmp_str.Printf(_T("%c"), c);
+  WriteString(tmp_str);
   return *this;
 }
 
@@ -318,12 +318,6 @@ wxTextOutputStream& wxTextOutputStream::operator<<(wxInt32 c)
   return *this;
 }
 
-wxTextOutputStream& wxTextOutputStream::operator<<(wxUint8 c)
-{
-  Write8(c);
-  return *this;
-}
-
 wxTextOutputStream& wxTextOutputStream::operator<<(wxUint16 c)
 {
   Write16(c);