X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/76806f59067a98cd004359c1f83021c36c7b6d3b..6344162a81f74b3fbab0803405eebc0c0b83e797:/src/xrc/xmlres.cpp diff --git a/src/xrc/xmlres.cpp b/src/xrc/xmlres.cpp index 52d9881e13..e5dc727914 100644 --- a/src/xrc/xmlres.cpp +++ b/src/xrc/xmlres.cpp @@ -283,19 +283,21 @@ static void ProcessPlatformProperty(wxXmlNode *node) while (tkn.HasMoreTokens()) { s = tkn.GetNextToken(); - if ( #ifdef __WXMSW__ - s == wxString(wxT("win")) -#elif defined(__UNIX__) - s == wxString(wxT("unix")) -#elif defined(__MAC__) - s == wxString(wxT("mac")) -#elif defined(__OS2__) - s == wxString(wxT("os2")) -#else - FALSE + if (s == wxT("win")) isok = true; +#endif +#ifdef __UNIX__ + if (s == wxT("unix")) isok = true; +#endif +#ifdef __MAC__ + if (s == wxT("mac")) isok = true; #endif - ) isok = TRUE; +#ifdef __OS2__ + if (s == wxT("os2")) isok = true; +#endif + + if (isok) + break; } }