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:
@@ -349,5 +349,15 @@ wxString wxGetOsDescription()
|
|||||||
return release;
|
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
|
#endif // wxOSX_USE_IPHONE
|
||||||
|
Reference in New Issue
Block a user