attempt to fix platform property problem on MacOSX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19878 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -283,19 +283,21 @@ static void ProcessPlatformProperty(wxXmlNode *node)
|
|||||||
while (tkn.HasMoreTokens())
|
while (tkn.HasMoreTokens())
|
||||||
{
|
{
|
||||||
s = tkn.GetNextToken();
|
s = tkn.GetNextToken();
|
||||||
if (
|
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
s == wxString(wxT("win"))
|
if (s == wxT("win")) isok = true;
|
||||||
#elif defined(__UNIX__)
|
|
||||||
s == wxString(wxT("unix"))
|
|
||||||
#elif defined(__MAC__)
|
|
||||||
s == wxString(wxT("mac"))
|
|
||||||
#elif defined(__OS2__)
|
|
||||||
s == wxString(wxT("os2"))
|
|
||||||
#else
|
|
||||||
FALSE
|
|
||||||
#endif
|
#endif
|
||||||
) isok = TRUE;
|
#ifdef __UNIX__
|
||||||
|
if (s == wxT("unix")) isok = true;
|
||||||
|
#endif
|
||||||
|
#ifdef __MAC__
|
||||||
|
if (s == wxT("mac")) isok = true;
|
||||||
|
#endif
|
||||||
|
#ifdef __OS2__
|
||||||
|
if (s == wxT("os2")) isok = true;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
if (isok)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -283,19 +283,21 @@ static void ProcessPlatformProperty(wxXmlNode *node)
|
|||||||
while (tkn.HasMoreTokens())
|
while (tkn.HasMoreTokens())
|
||||||
{
|
{
|
||||||
s = tkn.GetNextToken();
|
s = tkn.GetNextToken();
|
||||||
if (
|
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
s == wxString(wxT("win"))
|
if (s == wxT("win")) isok = true;
|
||||||
#elif defined(__UNIX__)
|
|
||||||
s == wxString(wxT("unix"))
|
|
||||||
#elif defined(__MAC__)
|
|
||||||
s == wxString(wxT("mac"))
|
|
||||||
#elif defined(__OS2__)
|
|
||||||
s == wxString(wxT("os2"))
|
|
||||||
#else
|
|
||||||
FALSE
|
|
||||||
#endif
|
#endif
|
||||||
) isok = TRUE;
|
#ifdef __UNIX__
|
||||||
|
if (s == wxT("unix")) isok = true;
|
||||||
|
#endif
|
||||||
|
#ifdef __MAC__
|
||||||
|
if (s == wxT("mac")) isok = true;
|
||||||
|
#endif
|
||||||
|
#ifdef __OS2__
|
||||||
|
if (s == wxT("os2")) isok = true;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
if (isok)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user