#if wxUSE_XRC
#include "wx/xrc/xh_dlg.h"
-#include "wx/dialog.h"
-#include "wx/frame.h"
-#include "wx/log.h"
-#include "wx/intl.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/intl.h"
+ #include "wx/log.h"
+ #include "wx/frame.h"
+ #include "wx/dialog.h"
+#endif
IMPLEMENT_DYNAMIC_CLASS(wxDialogXmlHandler, wxXmlResourceHandler)