]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/htmlpars.cpp
only define operator bool() if operator long() is not defined
[wxWidgets.git] / src / html / htmlpars.cpp
index 8c9eca91d3603888d2462e826c3838ffb1990349..3a409efb3bd1fef50d9fd751f3c6487c5fd510ae 100644 (file)
@@ -375,7 +375,12 @@ void wxHtmlParser::PopTagHandler()
     wxList::compatibility_iterator first;
 
     if ( !m_HandlersStack ||
-         (first = m_HandlersStack->GetFirst()) == NULL )
+#if wxUSE_STL
+         !(first = m_HandlersStack->GetFirst())
+#else // !wxUSE_STL
+         ((first = m_HandlersStack->GetFirst()) == NULL)
+#endif // wxUSE_STL/!wxUSE_STL
+        )
     {
         wxLogWarning(_("Warning: attempt to remove HTML tag handler from empty stack."));
         return;