Provide wxCheckOsVersion() implementation for iOS.

Duplicate the definition from the common code used for all non-OS X ports to
fix wxiOS linking errors.

See https://github.com/wxWidgets/wxWidgets/pull/62
This commit is contained in:
Vadim Zeitlin
2015-08-08 04:14:11 +02:00
parent f7b38667ea
commit 1255322426

View File

@@ -349,5 +349,15 @@ wxString wxGetOsDescription()
return release;
}
// FIXME: This duplicates the function in src/unix/utilsunx.cpp, we should just
// reuse it instead of there is no iOS-specific implementation of this.
bool wxCheckOsVersion(int majorVsn, int minorVsn)
{
int majorCur, minorCur;
wxGetOsVersion(&majorCur, &minorCur);
return majorCur > majorVsn || (majorCur == majorVsn && minorCur >= minorVsn);
}
#endif // wxOSX_USE_IPHONE