define HAVE_LARGEFILE_SUPPORT in setup.h when large files support is available and test for it in wx/filefn.h (closes #10844); document that wx/filefn.h must be included before testing for wxHAS_LARGE_(F)FILES

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-05-30 17:15:36 +00:00
parent 785b63731b
commit 68fe70ea1f
3 changed files with 13 additions and 6 deletions

View File

@@ -197,8 +197,12 @@ Currently the following symbols exist:
implemented in a generic way, using a critical section.} implemented in a generic way, using a critical section.}
@itemdef{wxHAS_CONFIG_TEMPLATE_RW, Defined if the currently used compiler @itemdef{wxHAS_CONFIG_TEMPLATE_RW, Defined if the currently used compiler
supports template Read() and Write() methods in wxConfig.} supports template Read() and Write() methods in wxConfig.}
@itemdef{wxHAS_LARGE_FILES, Defined if wxFile supports files more than 4GB in size.} @itemdef{wxHAS_LARGE_FILES, Defined if wxFile supports files more than 4GB in
@itemdef{wxHAS_LARGE_FFILES, Defined if wxFFile supports files more than 4GB in size.} size (notice that you must include @c wx/filefn.h before testing for this
symbol).}
@itemdef{wxHAS_LARGE_FFILES, Defined if wxFFile supports files more than 4GB in
size (notice that you must include @c wx/filefn.h before testing for this
symbol).}
@itemdef{wxHAS_MULTIPLE_FILEDLG_FILTERS, Defined if wxFileDialog supports multiple ('|'-separated) filters.} @itemdef{wxHAS_MULTIPLE_FILEDLG_FILTERS, Defined if wxFileDialog supports multiple ('|'-separated) filters.}
@itemdef{wxHAS_POWER_EVENTS, Defined if wxPowerEvent are ever generated on the current platform.} @itemdef{wxHAS_POWER_EVENTS, Defined if wxPowerEvent are ever generated on the current platform.}
@itemdef{wxHAS_RADIO_MENU_ITEMS, @itemdef{wxHAS_RADIO_MENU_ITEMS,

View File

@@ -446,16 +446,16 @@ enum wxFileKind
#define wxHAS_NATIVE_LSTAT #define wxHAS_NATIVE_LSTAT
#else // Unix or Windows using unknown compiler, assume POSIX supported #else // Unix or Windows using unknown compiler, assume POSIX supported
typedef off_t wxFileOffset; typedef off_t wxFileOffset;
#ifdef _LARGE_FILES #ifdef HAVE_LARGEFILE_SUPPORT
#define wxFileOffsetFmtSpec wxLongLongFmtSpec #define wxFileOffsetFmtSpec wxLongLongFmtSpec
wxCOMPILE_TIME_ASSERT( sizeof(off_t) == sizeof(wxLongLong_t), wxCOMPILE_TIME_ASSERT( sizeof(off_t) == sizeof(wxLongLong_t),
BadFileSizeType ); BadFileSizeType );
// wxFile is present and supports large files // wxFile is present and supports large files
#ifdef wxUSE_FILE #if wxUSE_FILE
#define wxHAS_LARGE_FILES #define wxHAS_LARGE_FILES
#endif #endif
// wxFFile is present and supports large files // wxFFile is present and supports large files
#if SIZEOF_LONG == 8 || defined HAVE_FSEEKO #if wxUSE_FFILE && (SIZEOF_LONG == 8 || defined HAVE_FSEEKO)
#define wxHAS_LARGE_FFILES #define wxHAS_LARGE_FFILES
#endif #endif
#else #else

View File

@@ -753,8 +753,11 @@
* Define if compiler has __thread keyword. * Define if compiler has __thread keyword.
*/ */
#undef HAVE___THREAD_KEYWORD #undef HAVE___THREAD_KEYWORD
/*
* Define if large (64 bit file offsets) files are supported.
*/
#undef HAVE_LARGEFILE_SUPPORT
/* compatibility */
/* /*
* Use OpenGL * Use OpenGL
*/ */