X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7fe8059f5825e58af0864e5933e43e5f0526bc76..60ff2335c460dd590da1d04a7301324102f54a0e:/include/wx/richtext/richtextxml.h

diff --git a/include/wx/richtext/richtextxml.h b/include/wx/richtext/richtextxml.h
index c83df66146..9f4cf24533 100644
--- a/include/wx/richtext/richtextxml.h
+++ b/include/wx/richtext/richtextxml.h
@@ -16,12 +16,10 @@
  * Includes
  */
 
-#include "wx/defs.h"
-
-#if wxUSE_RICHTEXT
-
 #include "wx/richtext/richtextbuffer.h"
 
+#if wxUSE_RICHTEXT && wxUSE_XML
+
 /*!
  * wxRichTextXMLHandler
  */
@@ -108,7 +106,7 @@ protected:
 };
 
 #endif
-    // wxUSE_RICHTEXT
+    // wxUSE_RICHTEXT && wxUSE_XML
 
 #endif
     // _WX_RICHTEXTXML_H_