From: Vadim Zeitlin Date: Sun, 20 May 2012 19:47:32 +0000 (+0000) Subject: Really fix compilation in !wxUSE_LOG_DEBUG && !HAVE_VARIADIC_MACROS case. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e779f0935774b9fb0ded3ca55ca2c0dc92330813 Really fix compilation in !wxUSE_LOG_DEBUG && !HAVE_VARIADIC_MACROS case. 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 --- diff --git a/src/common/markupparser.cpp b/src/common/markupparser.cpp index 929543c0a7..c0580e242f 100644 --- a/src/common/markupparser.cpp +++ b/src/common/markupparser.cpp @@ -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();