]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_tree.cpp
Use wxMBConvUTF8 when G_FILENAME_ENCODING is UTF-8, and set
[wxWidgets.git] / src / xrc / xh_tree.cpp
index cb886cf3d97c15c68eace63b3994b79fbff5025b..d9ee3ad6d6cf1e655ef29e3d49dc4e14d9838fb9 100644 (file)
@@ -8,7 +8,7 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "xh_tree.h"
 #endif
 
@@ -19,7 +19,7 @@
     #pragma hdrstop
 #endif
 
-#if wxUSE_XRC
+#if wxUSE_XRC && wxUSE_TREECTRL
 
 #include "wx/xrc/xh_tree.h"
 #include "wx/treectrl.h"
@@ -67,4 +67,4 @@ bool wxTreeCtrlXmlHandler::CanHandle(wxXmlNode *node)
     return IsOfClass(node, wxT("wxTreeCtrl"));
 }
 
-#endif // wxUSE_XRC
+#endif // wxUSE_XRC && wxUSE_TREECTRL