Add a micro version parameter to wxGetOsVersion
In addition to getting a major and minor OS version allow a micro version to be retrieved. In case of running on e.g. OS X 10.10.3 this allows the "3" to be retrieved again.
This commit is contained in:
committed by
Tobias Taschner
parent
5983274af6
commit
b1a9c6e79e
@@ -1235,7 +1235,7 @@ bool wxIsPlatform64Bit()
|
||||
#endif // Win64/Win32
|
||||
}
|
||||
|
||||
wxOperatingSystemId wxGetOsVersion(int *verMaj, int *verMin)
|
||||
wxOperatingSystemId wxGetOsVersion(int *verMaj, int *verMin, int *verMicro)
|
||||
{
|
||||
static struct
|
||||
{
|
||||
@@ -1273,6 +1273,8 @@ wxOperatingSystemId wxGetOsVersion(int *verMaj, int *verMin)
|
||||
*verMaj = s_version.verMaj;
|
||||
if ( verMin )
|
||||
*verMin = s_version.verMin;
|
||||
if ( verMicro )
|
||||
*verMicro = 0;
|
||||
|
||||
return s_version.os;
|
||||
}
|
||||
|
Reference in New Issue
Block a user