1// 2// Copyright 2019 The ANGLE Project Authors. All rights reserved. 3// Use of this source code is governed by a BSD-style license that can be 4// found in the LICENSE file. 5// 6// GPUTestConfig_iOS.mm: 7// Helper functions for GPUTestConfig that have to be compiled in ObjectiveC++ 8 9#include "GPUTestConfig_ios.h" 10 11#include "common/apple_platform_utils.h" 12 13#import <Foundation/Foundation.h> 14 15namespace angle 16{ 17 18void GetOperatingSystemVersionNumbers(int32_t *majorVersion, int32_t *minorVersion) 19{ 20 NSOperatingSystemVersion version = [[NSProcessInfo processInfo] operatingSystemVersion]; 21 *majorVersion = static_cast<int32_t>(version.majorVersion); 22 *minorVersion = static_cast<int32_t>(version.minorVersion); 23} 24 25} // namespace angle 26