]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_panel.cpp
Split some of the recent code out to make it more reusable.
[wxWidgets.git] / src / xrc / xh_panel.cpp
index b05433b0187ff8d58b413aa614699c1e93058847..d059aebba823114fbb809fd9c75f909ed63592cc 100644 (file)
@@ -8,7 +8,7 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "xh_panel.h"
 #endif
 
@@ -19,6 +19,8 @@
     #pragma hdrstop
 #endif
 
+#if wxUSE_XRC
+
 #include "wx/xrc/xh_panel.h"
 #include "wx/panel.h"
 #include "wx/frame.h"  // to get wxNO_3D
@@ -54,3 +56,5 @@ bool wxPanelXmlHandler::CanHandle(wxXmlNode *node)
 {
     return IsOfClass(node, wxT("wxPanel"));
 }
+
+#endif // wxUSE_XRC