use wxTextFile::Eol() in wxEndL

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2001-07-07 23:20:05 +00:00
parent 3c648a82a5
commit 733b8ed3f9

View File

@ -39,6 +39,7 @@
#include "wx/stream.h"
#include "wx/datstrm.h"
#include "wx/objstrm.h"
#include "wx/textfile.h"
// ----------------------------------------------------------------------------
// constants
@ -1176,15 +1177,9 @@ void wxBufferedOutputStream::SetOutputStreamBuffer(wxStreamBuffer *buffer)
wxOutputStream& wxEndL(wxOutputStream& stream)
{
#ifdef __MSW__
return stream.Write("\r\n", 2);
#else
#ifdef __WXMAC__
return stream.Write("\r", 1);
#else
return stream.Write("\n", 1);
#endif
#endif
static const wxChar *eol = wxTextFile::GetEOL();
return stream.Write(eol, wxStrlen(eol));
}
#endif