moved __STDC_EXT__ definition for HP-UX from configure to wx/platform.h, like this we can do it only if it's not alraedy defined by the compiler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
62603868bc
commit
7eb00c80b2
@ -1872,15 +1872,6 @@ dnl problems
|
|||||||
if test "x$wx_largefile" = "xyes"; then
|
if test "x$wx_largefile" = "xyes"; then
|
||||||
if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
|
if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
|
||||||
WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
|
WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
|
||||||
|
|
||||||
dnl we get "Large Files (ILP32) not supported in strict ANSI mode."
|
|
||||||
dnl #error from HP standard headers when compiling with g++ without this
|
|
||||||
dnl
|
|
||||||
dnl NB: gcc defines __STDC_EXT__=1 for C code, but not for C++, hence
|
|
||||||
dnl we do this only for CXXFLAGS and not CPPFLAGS
|
|
||||||
if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
|
|
||||||
CXXFLAGS="$CXXFLAGS -D__STDC_EXT__=1"
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
|
WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
|
||||||
fi
|
fi
|
||||||
|
@ -471,6 +471,14 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
We get "Large Files (ILP32) not supported in strict ANSI mode." #error
|
||||||
|
from HP-UX standard headers when compiling with g++ without this:
|
||||||
|
*/
|
||||||
|
#if defined(__HPUX__) && !defined(__STDC_EXT__)
|
||||||
|
# define __STDC_EXT__ 1
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Force linking against required libraries under Windows CE: */
|
/* Force linking against required libraries under Windows CE: */
|
||||||
#ifdef __WXWINCE__
|
#ifdef __WXWINCE__
|
||||||
# include "wx/msw/wince/libraries.h"
|
# include "wx/msw/wince/libraries.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user