X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/618f2efa413947456c7efb17d143a44a76787619..f0b1ccde63c1acd9ca18847f758603f39f22cf4b:/samples/sockets/client.cpp diff --git a/samples/sockets/client.cpp b/samples/sockets/client.cpp index f621bf370e..17781498d8 100644 --- a/samples/sockets/client.cpp +++ b/samples/sockets/client.cpp @@ -17,7 +17,7 @@ // headers // -------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) # pragma implementation "client.cpp" # pragma interface "client.cpp" #endif @@ -571,7 +571,8 @@ void MyFrame::OnTestURL(wxCommandEvent& WXUNUSED(event)) wxYield(); // Get the data - wxFileOutputStream sout(wxString("test.url")); + wxFile fileTest(wxT("test.url")); + wxFileOutputStream sout(fileTest); if (!sout.Ok()) { m_text->AppendText(_("Error: couldn't open file for output\n"));