]> git.saurik.com Git - wxWidgets.git/commitdiff
don't disable cast checks in debug builds
authorPaul Cornett <paulcor@bullseye.com>
Tue, 6 Sep 2011 16:24:49 +0000 (16:24 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Tue, 6 Sep 2011 16:24:49 +0000 (16:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

configure.in

index 7bc0ed708d32d8b4461ef720d84d3513eebd4c64..830e31f162bc1246c0f5abb243cdbfc20e268c83 100644 (file)
@@ -3109,9 +3109,6 @@ libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
 
-        dnl disable GTK runtime type checks
-        TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -DG_DISABLE_CAST_CHECKS"
-
         AFMINSTALL=afminstall
         TOOLKIT=GTK
         GUIDIST=GTK_DIST
@@ -5404,6 +5401,8 @@ if test "$wxUSE_DEBUG_FLAG" = "no" ; then
     if test "$wxUSE_GTK" = 1 ; then
         if test "x$wxGTK_VERSION" = "x1" ; then
             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
+        else
+            CPPFLAGS="$CPPFLAGS -DG_DISABLE_CAST_CHECKS"
         fi
     fi
 fi