]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_choic.cpp
updates from Adrián González Alba
[wxWidgets.git] / src / xrc / xh_choic.cpp
index a3903f78368a641aefc2159d372b2857d455a924..c26bf71eea695b6e33abbf4a39a62568dc058b32 100644 (file)
     #pragma hdrstop
 #endif
 
-#if wxUSE_XRC
+#if wxUSE_XRC && wxUSE_CHOICE
 
 #include "wx/xrc/xh_choic.h"
 
 #ifndef WX_PRECOMP
     #include "wx/intl.h"
+    #include "wx/choice.h"
 #endif
 
-#include "wx/choice.h"
-
 IMPLEMENT_DYNAMIC_CLASS(wxChoiceXmlHandler, wxXmlResourceHandler)
 
 wxChoiceXmlHandler::wxChoiceXmlHandler()
@@ -96,4 +95,4 @@ bool wxChoiceXmlHandler::CanHandle(wxXmlNode *node)
            (m_insideBox && node->GetName() == wxT("item")));
 }
 
-#endif // wxUSE_XRC
+#endif // wxUSE_XRC && wxUSE_CHOICE