+void wxXmlResource::ProcessPlatformProperty(wxXmlNode *node)
+{
+ wxString s;
+ bool isok;
+
+ wxXmlNode *c = node->GetChildren();
+ while (c)
+ {
+ isok = FALSE;
+ if (!c->GetPropVal(_T("platform"), &s))
+ isok = TRUE;
+ else
+ {
+ wxStringTokenizer tkn(s, " |");
+
+ while (tkn.HasMoreTokens())
+ {
+ s = tkn.GetNextToken();
+ if (
+#ifdef __WXMSW__
+ s == wxString(_T("win"))
+#elif defined(__UNIX__)
+ s == wxString(_T("unix"))
+#elif defined(__MAC__)
+ s == wxString(_T("mac"))
+#elif defined(__OS2__)
+ s == wxString(_T("os2"))
+#else
+ FALSE
+#endif
+ ) isok = TRUE;
+ }
+ }
+
+ if (isok)
+ ProcessPlatformProperty(c);
+ else
+ {
+ node->RemoveChild(c);
+ delete c;
+ }
+
+ c = c->GetNext();
+ }
+}
+
+
+