]> git.saurik.com Git - wxWidgets.git/commitdiff
GTK_NO_CHECK_CASTS is a gtk1 only thing, so don't put it to CPPFLAGS with gtk2.
authorMart Raudsepp <leio@gentoo.org>
Mon, 16 Jan 2006 15:42:41 +0000 (15:42 +0000)
committerMart Raudsepp <leio@gentoo.org>
Mon, 16 Jan 2006 15:42:41 +0000 (15:42 +0000)
It's been renamed to G_NO_CHECK_CASTS in gtk2 stack, but we don't appear to need it.
Why do we need to supress cast checks for gtk1?

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

configure.in

index 459c4ac20812d6d5132cda01d720d31759f0dd46..b01862c8a02c5ecafd773ec7e1b3b81b05456c40 100644 (file)
@@ -5079,7 +5079,9 @@ if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
 else
     if test "$wxUSE_GTK" = 1 ; then
     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
 else
     if test "$wxUSE_GTK" = 1 ; then
-        CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
+        if test "x$wxGTK_VERSION" = "x1" ; then
+            CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
+        fi
     fi
 fi
 
     fi
 fi