#define wxUSE_TEXTFILE 0
#endif // wxUSE_FILE
-#if wxUSE_TEXTFILE
-
-#include "wx/string.h"
-#include "wx/file.h"
-#include "wx/dynarray.h"
-
// ----------------------------------------------------------------------------
-// wxTextFile
+// constants
// ----------------------------------------------------------------------------
+// NB: this is always defined, even if !wxUSE_TEXTFILE
+
// the line termination type
enum wxTextFileType
{
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