]> git.saurik.com Git - wxWidgets.git/commitdiff
Really fix compilation in !wxUSE_LOG_DEBUG && !HAVE_VARIADIC_MACROS case.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 20 May 2012 19:47:32 +0000 (19:47 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 20 May 2012 19:47:32 +0000 (19:47 +0000)
Fix the fix of r71502, we need the variable declaration when not using
HAVE_VARIADIC_MACROS.

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

src/common/markupparser.cpp

index 929543c0a755570cd5b8fcc716b4ef042ae4356c..c0580e242fe770185d0abb4e3480cc4a4e37a12f 100644 (file)
@@ -284,7 +284,7 @@ bool wxMarkupParser::Parse(const wxString& text)
                     // and doesn't need to be defined if they're not compiled
                     // at all (it actually would result in unused variable
                     // messages in this case).
-#if wxUSE_LOG_DEBUG && defined(HAVE_VARIADIC_MACROS)
+#if wxUSE_LOG_DEBUG || !defined(HAVE_VARIADIC_MACROS)
                     // Remember the tag starting position for the error
                     // messages.
                     const size_t pos = it - text.begin();