From d8edb3856b9a5e076927e43e2ace8d4a560c3ae4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 5 Dec 2000 22:38:43 +0000 Subject: [PATCH] fixed compilation with wxUSE_TEXTFILE=0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/textfile.h | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/include/wx/textfile.h b/include/wx/textfile.h index 6cf2e680ac..c6e33dcca3 100644 --- a/include/wx/textfile.h +++ b/include/wx/textfile.h @@ -25,16 +25,12 @@ #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 { @@ -45,6 +41,16 @@ 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 -- 2.45.2