X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e296ac9f3d5fb224e0717b2ff410b913905f6b5f..c17bcb844883451b564446bf7843e7b3f862fe48:/src/common/textfile.cpp diff --git a/src/common/textfile.cpp b/src/common/textfile.cpp index c70d51d278..d45a4cc498 100644 --- a/src/common/textfile.cpp +++ b/src/common/textfile.cpp @@ -23,6 +23,12 @@ #pragma hdrstop #endif //__BORLANDC__ +#ifndef WX_PRECOMP +#include "wx/defs.h" +#endif + +#if wxUSE_TEXTFILE && wxUSE_FILE + #include #include #include @@ -250,7 +256,7 @@ bool wxTextFile::Write(wxTextFileType typeNew) } const wxChar *wxTextFile::GetEOL(wxTextFileType type) - { +{ switch ( type ) { case wxTextFileType_None: return _T(""); case wxTextFileType_Unix: return _T("\n"); @@ -261,5 +267,6 @@ const wxChar *wxTextFile::GetEOL(wxTextFileType type) wxFAIL_MSG(_T("bad file type in wxTextFile::GetEOL.")); return (const wxChar *) NULL; } - } +} +#endif