X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f42d2aba7645ab25ed3764d55394e58649ab0363..1e3eca9d3782d5eed5ba8d8019548c9f82523517:/include/wx/textfile.h diff --git a/include/wx/textfile.h b/include/wx/textfile.h index 9cfd0794e4..aea625af7d 100644 --- a/include/wx/textfile.h +++ b/include/wx/textfile.h @@ -11,14 +11,17 @@ // Licence: wxWindows license /////////////////////////////////////////////////////////////////////////////// -#ifndef _TEXTFILE_H -#define _TEXTFILE_H +#ifndef _TEXTFILE_H +#define _TEXTFILE_H #ifdef __GNUG__ #pragma interface "textfile.h" #endif #include "wx/defs.h" + +#if wxUSE_TEXTFILE && wxUSE_FILE + #include "wx/string.h" #include "wx/file.h" #include "wx/dynarray.h" @@ -38,7 +41,7 @@ enum wxTextFileType WX_DEFINE_ARRAY(wxTextFileType, ArrayFileType); -class wxTextFile +class WXDLLEXPORT wxTextFile { public: // default type for current platform (determined at compile time) @@ -94,7 +97,7 @@ public: // guess the type of file (m_file is supposed to be opened) wxTextFileType GuessType() const; // get the name of the file - const char *GetName() const { return m_strFile.c_str(); } + const wxChar *GetName() const { return m_strFile.c_str(); } // add/remove lines // add a line to the end @@ -114,7 +117,7 @@ public: // get the file termination string // Note: implementation moved to textfile to prevent warning due to switch. - static const char *GetEOL(wxTextFileType type = typeDefault); + static const wxChar *GetEOL(wxTextFileType type = typeDefault); // dtor ~wxTextFile(); @@ -137,4 +140,9 @@ private: wxString m_strFile; // name of the file }; -#endif //_TEXTFILE_H +#endif + // wxUSE_TEXTFILE && wxUSE_FILE + +#endif + // _TEXTFILE_H +