]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_grid.cpp
Hacks for wine.
[wxWidgets.git] / src / xrc / xh_grid.cpp
index a5cea99ad762650119dee05708cb8393171a612a..e3031ee27f14ca3c43f67f8260dc797be3658371 100644 (file)
@@ -15,7 +15,7 @@
     #pragma hdrstop
 #endif
 
     #pragma hdrstop
 #endif
 
-#if wxUSE_XRC
+#if wxUSE_XRC && wxUSE_GRID
 
 #include "wx/xrc/xh_grid.h"
 #include "wx/grid.h"
 
 #include "wx/xrc/xh_grid.h"
 #include "wx/grid.h"
@@ -23,7 +23,7 @@
 IMPLEMENT_DYNAMIC_CLASS(wxGridXmlHandler, wxXmlResourceHandler)
 
 wxGridXmlHandler::wxGridXmlHandler()
 IMPLEMENT_DYNAMIC_CLASS(wxGridXmlHandler, wxXmlResourceHandler)
 
 wxGridXmlHandler::wxGridXmlHandler()
-: wxXmlResourceHandler()
+                : wxXmlResourceHandler()
 {
     AddWindowStyles();
 }
 {
     AddWindowStyles();
 }
@@ -48,4 +48,4 @@ bool wxGridXmlHandler::CanHandle(wxXmlNode *node)
     return IsOfClass(node, wxT("wxGrid"));
 }
 
     return IsOfClass(node, wxT("wxGrid"));
 }
 
-#endif // wxUSE_XRC
+#endif // wxUSE_XRC && wxUSE_GRID