| Index: webrtc/base/macutils.cc
|
| diff --git a/webrtc/base/macutils.cc b/webrtc/base/macutils.cc
|
| index 7b1ff4753681acf063126cbca94374d899d68f37..7b92eb3b27956018f500e156b4fd1d08ac8620ea 100644
|
| --- a/webrtc/base/macutils.cc
|
| +++ b/webrtc/base/macutils.cc
|
| @@ -72,7 +72,11 @@ void DecodeFourChar(UInt32 fc, std::string* out) {
|
| static bool GetGestalt(OSType ostype, int* value) {
|
| ASSERT(NULL != value);
|
| SInt32 native_value;
|
| +// TODO(hjon): Update deprecated APIs (see webrtc:5478 for details).
|
| +#pragma clang diagnostic push
|
| +#pragma clang diagnostic ignored "-Wdeprecated"
|
| OSStatus result = Gestalt(ostype, &native_value);
|
| +#pragma clang diagnostic pop
|
| if (noErr == result) {
|
| *value = native_value;
|
| return true;
|
| @@ -85,6 +89,9 @@ static bool GetGestalt(OSType ostype, int* value) {
|
|
|
| bool GetOSVersion(int* major, int* minor, int* bugfix) {
|
| ASSERT(major && minor && bugfix);
|
| +// TODO(hjon): Update deprecated APIs (see webrtc:5478 for details).
|
| +#pragma clang diagnostic push
|
| +#pragma clang diagnostic ignored "-Wdeprecated"
|
| if (!GetGestalt(gestaltSystemVersion, major)) {
|
| return false;
|
| }
|
| @@ -97,6 +104,7 @@ bool GetOSVersion(int* major, int* minor, int* bugfix) {
|
| return GetGestalt(gestaltSystemVersionMajor, major) &&
|
| GetGestalt(gestaltSystemVersionMinor, minor) &&
|
| GetGestalt(gestaltSystemVersionBugFix, bugfix);
|
| +#pragma clang diagnostic pop
|
| }
|
|
|
| MacOSVersionName GetOSVersionName() {
|
|
|