]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/typetest/typetest.cpp
Compile fix.
[wxWidgets.git] / samples / typetest / typetest.cpp
index 26cf4051df4901806d6a5b7086b7dbf58ae21003..bb0e047620704b3941bdf52a8310a78a98f311ac 100644 (file)
 
 #include "typetest.h"
 
 
 #include "typetest.h"
 
-#if defined(__WXGTK__) || defined(__WXMOTIF__)
+#if defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__)
 #include "mondrian.xpm"
 #endif
 
 #include "mondrian.xpm"
 #endif
 
+#ifdef new
+#undef new
+#endif
+
 #include "wx/ioswrap.h"
 
 #if wxUSE_IOSTREAMH
 #include "wx/ioswrap.h"
 
 #if wxUSE_IOSTREAMH
@@ -125,7 +129,7 @@ void MyApp::DoStreamDemo(wxCommandEvent& WXUNUSED(event))
 
     textCtrl.WriteText( "Writing to ofstream and wxFileOutputStream:\n" );
 
 
     textCtrl.WriteText( "Writing to ofstream and wxFileOutputStream:\n" );
 
-    ofstream std_file_output( "test_std.dat" );
+    wxSTD ofstream std_file_output( "test_std.dat" );
     wxFileOutputStream file_output( wxString("test_wx.dat") );
     wxBufferedOutputStream buf_output( file_output );
     wxTextOutputStream text_output( buf_output );
     wxFileOutputStream file_output( wxString("test_wx.dat") );
     wxBufferedOutputStream buf_output( file_output );
     wxTextOutputStream text_output( buf_output );
@@ -163,7 +167,7 @@ void MyApp::DoStreamDemo(wxCommandEvent& WXUNUSED(event))
     
     textCtrl.WriteText( "\nReading from ifstream:\n" );
 
     
     textCtrl.WriteText( "\nReading from ifstream:\n" );
 
-    ifstream std_file_input( "test_std.dat" );
+    wxSTD ifstream std_file_input( "test_std.dat" );
 
     std_file_input >> si;
     tmp.Printf( _T("Signed int: %d\n"), si );
 
     std_file_input >> si;
     tmp.Printf( _T("Signed int: %d\n"), si );