Provide wxCheckOsVersion() implementation for wxOSX/Carbon
Duplicate the definition from the common code used for all non-OS X ports to fix wxOSX/Carbon linking error. See https://github.com/wxWidgets/wxWidgets/pull/62 .
This commit is contained in:
@@ -73,6 +73,14 @@ wxOperatingSystemId wxGetOsVersion(int *majorVsn, int *minorVsn)
|
|||||||
return wxOS_MAC_OSX_DARWIN;
|
return wxOS_MAC_OSX_DARWIN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool wxCheckOsVersion(int majorVsn, int minorVsn)
|
||||||
|
{
|
||||||
|
int majorCur, minorCur;
|
||||||
|
wxGetOsVersion(&majorCur, &minorCur);
|
||||||
|
|
||||||
|
return majorCur > majorVsn || (majorCur == majorVsn && minorCur >= minorVsn);
|
||||||
|
}
|
||||||
|
|
||||||
#include <sys/utsname.h>
|
#include <sys/utsname.h>
|
||||||
|
|
||||||
wxString wxGetOsDescription()
|
wxString wxGetOsDescription()
|
||||||
|
Reference in New Issue
Block a user