git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23250
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// filename and not URL:
if (wxFileName::FileExists(fnd))
{
// 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())
// change working directory later:
wxFileName fn(fnd);
if (fn.IsRelative())
fnd = wxFileSystem::FileNameToURL(fnd);
#endif
}
fnd = wxFileSystem::FileNameToURL(fnd);
#endif
}
#if wxUSE_FILESYSTEM
if (fnd.Lower().Matches(wxT("*.zip")) ||
fnd.Lower().Matches(wxT("*.xrs")))
#if wxUSE_FILESYSTEM
if (fnd.Lower().Matches(wxT("*.zip")) ||
fnd.Lower().Matches(wxT("*.xrs")))
#ifdef __WINDOWS__
if (s == wxT("win")) isok = true;
#endif
#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;
if (s == wxT("mac")) isok = true;
+#elif defined(__UNIX__)
+ if (s == wxT("unix")) isok = true;
#endif
#ifdef __OS2__
if (s == wxT("os2")) isok = true;
#endif
#ifdef __OS2__
if (s == wxT("os2")) isok = true;
wxXmlResourceHandler *handler;
if (handlerToUse)
wxXmlResourceHandler *handler;
if (handlerToUse)
if (handlerToUse->CanHandle(node))
{
return handlerToUse->CreateResource(node, parent, instance);
}
}
else if (node->GetName() == wxT("object"))
if (handlerToUse->CanHandle(node))
{
return handlerToUse->CreateResource(node, parent, instance);
}
}
else if (node->GetName() == wxT("object"))
wxNode *ND = m_handlers.GetFirst();
while (ND)
{
wxNode *ND = m_handlers.GetFirst();
while (ND)
{
// filename and not URL:
if (wxFileName::FileExists(fnd))
{
// 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())
// change working directory later:
wxFileName fn(fnd);
if (fn.IsRelative())
fnd = wxFileSystem::FileNameToURL(fnd);
#endif
}
fnd = wxFileSystem::FileNameToURL(fnd);
#endif
}
#if wxUSE_FILESYSTEM
if (fnd.Lower().Matches(wxT("*.zip")) ||
fnd.Lower().Matches(wxT("*.xrs")))
#if wxUSE_FILESYSTEM
if (fnd.Lower().Matches(wxT("*.zip")) ||
fnd.Lower().Matches(wxT("*.xrs")))
#ifdef __WINDOWS__
if (s == wxT("win")) isok = true;
#endif
#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;
if (s == wxT("mac")) isok = true;
+#elif defined(__UNIX__)
+ if (s == wxT("unix")) isok = true;
#endif
#ifdef __OS2__
if (s == wxT("os2")) isok = true;
#endif
#ifdef __OS2__
if (s == wxT("os2")) isok = true;
wxXmlResourceHandler *handler;
if (handlerToUse)
wxXmlResourceHandler *handler;
if (handlerToUse)
if (handlerToUse->CanHandle(node))
{
return handlerToUse->CreateResource(node, parent, instance);
}
}
else if (node->GetName() == wxT("object"))
if (handlerToUse->CanHandle(node))
{
return handlerToUse->CreateResource(node, parent, instance);
}
}
else if (node->GetName() == wxT("object"))
wxNode *ND = m_handlers.GetFirst();
while (ND)
{
wxNode *ND = m_handlers.GetFirst();
while (ND)
{