git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10894
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/stream.h"
#include "wx/datstrm.h"
#include "wx/objstrm.h"
#include "wx/stream.h"
#include "wx/datstrm.h"
#include "wx/objstrm.h"
+#include "wx/textfile.h"
// ----------------------------------------------------------------------------
// constants
// ----------------------------------------------------------------------------
// constants
wxOutputStream& wxEndL(wxOutputStream& stream)
{
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));