]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_split.cpp
include wx/wxchar.h after ctype.h to fix compilation problem with _T redefinition...
[wxWidgets.git] / src / xrc / xh_split.cpp
index 2eef0d3ac4d400199458852b0883df3259370101..948b241ec19f720a5054d8d5cf9c21d54780ce70 100644 (file)
@@ -7,7 +7,7 @@
 // Copyright:   (c) 2003 panga@freemail.hu, Vaclav Slavik
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 // Copyright:   (c) 2003 panga@freemail.hu, Vaclav Slavik
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
+
 #ifdef __GNUG__
 #pragma implementation "xh_split.h"
 #endif
 #ifdef __GNUG__
 #pragma implementation "xh_split.h"
 #endif
@@ -19,6 +19,8 @@
     #pragma hdrstop
 #endif
 
     #pragma hdrstop
 #endif
 
+#if wxUSE_XRC
+
 #include "wx/xrc/xh_split.h"
 #include "wx/splitter.h"
 #include "wx/log.h"
 #include "wx/xrc/xh_split.h"
 #include "wx/splitter.h"
 #include "wx/log.h"
@@ -60,7 +62,7 @@ wxObject *wxSplitterWindowXmlHandler::DoCreateResource()
     wxXmlNode *n = m_node->GetChildren();
     while (n)
     {
     wxXmlNode *n = m_node->GetChildren();
     while (n)
     {
-        if ((n->GetType() == wxXML_ELEMENT_NODE) && 
+        if ((n->GetType() == wxXML_ELEMENT_NODE) &&
             (n->GetName() == wxT("object") ||
              n->GetName() == wxT("object_ref")))
         {
             (n->GetName() == wxT("object") ||
              n->GetName() == wxT("object_ref")))
         {
@@ -74,7 +76,7 @@ wxObject *wxSplitterWindowXmlHandler::DoCreateResource()
             {
                 win2 = win;
                 break;
             {
                 win2 = win;
                 break;
-            }            
+            }
         }
         n = n->GetNext();
     }
         }
         n = n->GetNext();
     }
@@ -103,4 +105,4 @@ bool wxSplitterWindowXmlHandler::CanHandle(wxXmlNode *node)
      return IsOfClass(node, wxT("wxSplitterWindow"));
 }
 
      return IsOfClass(node, wxT("wxSplitterWindow"));
 }
 
-
+#endif // wxUSE_XRC