// Purpose: Implementation of wxMarkupParser.
// Author: Vadim Zeitlin
// Created: 2011-02-16
-// RCS-ID: $Id: $
+// RCS-ID: $Id$
// Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
#if wxUSE_MARKUP
+#ifndef WX_PRECOMP
+ #include "wx/log.h"
+#endif
+
#include "wx/private/markupparser.h"
#include "wx/stack.h"
current.clear();
}
+ // This variable is used only in the debugging messages
+ // 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)
// Remember the tag starting position for the error
// messages.
const size_t pos = it - text.begin();
-
+#endif
bool start = true;
if ( ++it != end && *it == '/' )
{