From 06e66bd0ca17d271f7b30e1476695f3f37ee2fb0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 27 Sep 2004 14:33:51 +0000 Subject: [PATCH] define wxInvalidOffset properly (as wxFileOffset, not off_t) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/filefn.h | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/include/wx/filefn.h b/include/wx/filefn.h index 53bf74d084..2ad2b9680a 100644 --- a/include/wx/filefn.h +++ b/include/wx/filefn.h @@ -115,16 +115,6 @@ typedef long off_t; #endif -#if defined(__VISAGECPP__) && __IBMCPP__ >= 400 -// -// VisualAge C++ V4.0 cannot have any external linkage const decs -// in headers included by more than one primary source -// -extern const off_t wxInvalidOffset; -#else -const off_t wxInvalidOffset = (off_t)-1; -#endif - enum wxSeekMode { wxFromStart, @@ -317,7 +307,7 @@ enum wxSeekMode // It's a private define, undefine it so nobody gets tempted to use it #undef __HUGEFILES_SUPPORTED -#else +#else // Unix platforms using configure typedef off_t wxFileOffset; #ifdef _LARGE_FILES #define wxFileOffsetFmtSpec wxLongLongFmtSpec @@ -353,8 +343,17 @@ enum wxSeekMode #define wxStat stat #define wxAccess access #endif +#endif // platforms -#endif // VC++ +#if defined(__VISAGECPP__) && __IBMCPP__ >= 400 +// +// VisualAge C++ V4.0 cannot have any external linkage const decs +// in headers included by more than one primary source +// +extern const wxFileOffset wxInvalidOffset; +#else +const wxFileOffset wxInvalidOffset = (wxFileOffset)-1; +#endif // ---------------------------------------------------------------------------- // functions