define _FILE_OFFSET_BITS/_LARGE_FILES on the compiler command line instead of wx/setup.h to make sure they're always defined when needed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
1bfec677b1
commit
f02444d0d7
13
configure.in
13
configure.in
@ -1463,6 +1463,19 @@ AC_DEFINE_UNQUOTED(SIZEOF_WCHAR_T, $wx_cv_sizeof_wchar_t)
|
|||||||
dnl check for large file support
|
dnl check for large file support
|
||||||
AC_SYS_LARGEFILE
|
AC_SYS_LARGEFILE
|
||||||
|
|
||||||
|
dnl we need to define _FILE_OFFSET_BITS or _LARGE_FILES on the compiler command
|
||||||
|
dnl line because otherwise the system headers risk being included before
|
||||||
|
dnl wx/defs.h which defines these constants leading to inconsistent
|
||||||
|
dnl sizeof(off_t) in different source files of the same program and linking
|
||||||
|
dnl problems
|
||||||
|
if test "x$wx_largefile" = "xyes"; then
|
||||||
|
if test "x$ac_cv_sys_file_offset_bits" = "xyes"; then
|
||||||
|
CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
|
||||||
|
else
|
||||||
|
CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
dnl check for bytesex stuff (don't use AC_C_BIGENDIAN to allow cross-compiling)
|
dnl check for bytesex stuff (don't use AC_C_BIGENDIAN to allow cross-compiling)
|
||||||
WX_C_BIGENDIAN
|
WX_C_BIGENDIAN
|
||||||
|
|
||||||
|
@ -905,12 +905,6 @@
|
|||||||
/* Define if you have support for large (64 bit size) files */
|
/* Define if you have support for large (64 bit size) files */
|
||||||
#undef HAVE_LARGEFILE_SUPPORT
|
#undef HAVE_LARGEFILE_SUPPORT
|
||||||
|
|
||||||
/* Required by HAVE_LARGEFILE_SUPPORT on some systems */
|
|
||||||
#undef _FILE_OFFSET_BITS
|
|
||||||
|
|
||||||
/* Ditto */
|
|
||||||
#undef _LARGE_FILES
|
|
||||||
|
|
||||||
/* Define if you have localtime() */
|
/* Define if you have localtime() */
|
||||||
#undef HAVE_LOCALTIME
|
#undef HAVE_LOCALTIME
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user