]> git.saurik.com Git - wxWidgets.git/commitdiff
only define __STDC_EXT__ in CXXFLAGS for gcc under HP-UX, it's already present in...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 20 Aug 2005 15:10:12 +0000 (15:10 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 20 Aug 2005 15:10:12 +0000 (15:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35242 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

configure.in

index 3d1cf7097e969d5632f4f75813c09860a3b90086..e734762a32ca5344be4cb1f90f1137e5b8252ecf 100644 (file)
@@ -1874,9 +1874,12 @@ if test "x$wx_largefile" = "xyes"; then
         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 without this
-        if test "$USE_HPUX" = 1; then
-            CPPFLAGS="$CPPFLAGS -D__STDC_EXT__"
+        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
         WX_LARGEFILE_FLAGS="-D_LARGE_FILES"