fixed compilation with wxUSE_TEXTFILE=0

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-12-05 22:38:43 +00:00
parent 1192d9ecd0
commit d8edb3856b

View File

@@ -25,16 +25,12 @@
#define wxUSE_TEXTFILE 0 #define wxUSE_TEXTFILE 0
#endif // wxUSE_FILE #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 // the line termination type
enum wxTextFileType enum wxTextFileType
{ {
@@ -45,6 +41,16 @@ 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); WX_DEFINE_EXPORTED_ARRAY(wxTextFileType, ArrayFileType);
class WXDLLEXPORT wxTextFile class WXDLLEXPORT wxTextFile