mac: Make GetOSVersion() private to a cc file.
Everything calls GetOSVersionName() instead, so no need to expose that. Since it uses deprecated functions, this will make it easier to rewrite it in a future change. BUG=webrtc:6027 NOTRY=true Review-Url: https://codereview.webrtc.org/2117823002 Cr-Commit-Position: refs/heads/master@{#13399}
This commit is contained in:
parent
63fb95a68d
commit
0cf208aa28
@ -83,7 +83,7 @@ static bool GetGestalt(OSType ostype, int* value) {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool GetOSVersion(int* major, int* minor, int* bugfix) {
|
||||
static bool GetOSVersion(int* major, int* minor, int* bugfix) {
|
||||
ASSERT(major && minor && bugfix);
|
||||
if (!GetGestalt(gestaltSystemVersion, major)) {
|
||||
return false;
|
||||
|
||||
@ -43,7 +43,6 @@ enum MacOSVersionName {
|
||||
kMacOSNewer, // 10.10+
|
||||
};
|
||||
|
||||
bool GetOSVersion(int* major, int* minor, int* bugfix);
|
||||
MacOSVersionName GetOSVersionName();
|
||||
bool GetQuickTimeVersion(std::string* version);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user