git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8883
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#define wxUSE_TEXTFILE 0
#endif // wxUSE_FILE
#define wxUSE_TEXTFILE 0
#endif // wxUSE_FILE
-#if wxUSE_TEXTFILE
-
-#include "wx/string.h"
-#include "wx/file.h"
-#include "wx/dynarray.h"
-
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
+// NB: this is always defined, even if !wxUSE_TEXTFILE
+
// the line termination type
enum wxTextFileType
{
// the line termination type
enum wxTextFileType
{
wxTextFileType_Os2 // 'CR' 'LF'
};
wxTextFileType_Os2 // 'CR' 'LF'
};
+#if wxUSE_TEXTFILE
+
+#include "wx/string.h"
+#include "wx/file.h"
+#include "wx/dynarray.h"
+
+// ----------------------------------------------------------------------------
+// wxTextFile
+// ----------------------------------------------------------------------------
+
WX_DEFINE_EXPORTED_ARRAY(wxTextFileType, ArrayFileType);
class WXDLLEXPORT wxTextFile
WX_DEFINE_EXPORTED_ARRAY(wxTextFileType, ArrayFileType);
class WXDLLEXPORT wxTextFile