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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user