Better #if checks for mac in ProcessPlatformProperty

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2003-08-26 21:19:30 +00:00
parent 84389518ba
commit b380439d52
2 changed files with 14 additions and 16 deletions

View File

@ -107,7 +107,7 @@ bool wxXmlResource::Load(const wxString& filemask)
// filename and not URL:
if (wxFileName::FileExists(fnd))
{
// Make the name absolute filename, because the app may
// Make the name absolute filename, because the app may
// change working directory later:
wxFileName fn(fnd);
if (fn.IsRelative())
@ -119,7 +119,7 @@ bool wxXmlResource::Load(const wxString& filemask)
fnd = wxFileSystem::FileNameToURL(fnd);
#endif
}
#if wxUSE_FILESYSTEM
if (fnd.Lower().Matches(wxT("*.zip")) ||
fnd.Lower().Matches(wxT("*.xrs")))
@ -290,11 +290,10 @@ static void ProcessPlatformProperty(wxXmlNode *node)
#ifdef __WINDOWS__
if (s == wxT("win")) isok = true;
#endif
#ifdef __UNIX__
if (s == wxT("unix")) isok = true;
#endif
#ifdef __MAC__
#if defined(__MAC__) || defined(__APPLE__)
if (s == wxT("mac")) isok = true;
#elif defined(__UNIX__)
if (s == wxT("unix")) isok = true;
#endif
#ifdef __OS2__
if (s == wxT("os2")) isok = true;
@ -569,14 +568,14 @@ wxObject *wxXmlResource::CreateResFromNode(wxXmlNode *node, wxObject *parent,
wxXmlResourceHandler *handler;
if (handlerToUse)
{
{
if (handlerToUse->CanHandle(node))
{
return handlerToUse->CreateResource(node, parent, instance);
}
}
else if (node->GetName() == wxT("object"))
{
{
wxNode *ND = m_handlers.GetFirst();
while (ND)
{

View File

@ -107,7 +107,7 @@ bool wxXmlResource::Load(const wxString& filemask)
// filename and not URL:
if (wxFileName::FileExists(fnd))
{
// Make the name absolute filename, because the app may
// Make the name absolute filename, because the app may
// change working directory later:
wxFileName fn(fnd);
if (fn.IsRelative())
@ -119,7 +119,7 @@ bool wxXmlResource::Load(const wxString& filemask)
fnd = wxFileSystem::FileNameToURL(fnd);
#endif
}
#if wxUSE_FILESYSTEM
if (fnd.Lower().Matches(wxT("*.zip")) ||
fnd.Lower().Matches(wxT("*.xrs")))
@ -290,11 +290,10 @@ static void ProcessPlatformProperty(wxXmlNode *node)
#ifdef __WINDOWS__
if (s == wxT("win")) isok = true;
#endif
#ifdef __UNIX__
if (s == wxT("unix")) isok = true;
#endif
#ifdef __MAC__
#if defined(__MAC__) || defined(__APPLE__)
if (s == wxT("mac")) isok = true;
#elif defined(__UNIX__)
if (s == wxT("unix")) isok = true;
#endif
#ifdef __OS2__
if (s == wxT("os2")) isok = true;
@ -569,14 +568,14 @@ wxObject *wxXmlResource::CreateResFromNode(wxXmlNode *node, wxObject *parent,
wxXmlResourceHandler *handler;
if (handlerToUse)
{
{
if (handlerToUse->CanHandle(node))
{
return handlerToUse->CreateResource(node, parent, instance);
}
}
else if (node->GetName() == wxT("object"))
{
{
wxNode *ND = m_handlers.GetFirst();
while (ND)
{