#include "typetest.h"
-#if defined(__WXGTK__) || defined(__WXMOTIF__)
+#if defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__)
#include "mondrian.xpm"
#endif
+#ifdef new
+#undef new
+#endif
+
#include "wx/ioswrap.h"
#if wxUSE_IOSTREAMH
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 );
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 );