mirror of
https://github.com/yuzu-emu/breakpad
synced 2024-11-22 09:53:41 +00:00
Fix -Wunguarded-availability warnings.
Change-Id: I400130d67acea47158b9ba4f5703c7e9bc2cbb79 Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/4811217 Reviewed-by: Joshua Peraza <jperaza@chromium.org>
This commit is contained in:
parent
922d49bdfe
commit
e35d1d09ae
1 changed files with 2 additions and 2 deletions
|
@ -95,7 +95,7 @@ ArchInfo GetLocalArchInfo(void) {
|
|||
#ifdef __APPLE__
|
||||
|
||||
std::optional<ArchInfo> GetArchInfoFromName(const char* arch_name) {
|
||||
if (__builtin_available(macOS 13.0, iOS 16.0, *)) {
|
||||
if (__builtin_available(macOS 13.0, iOS 16.0, tvOS 16.0, *)) {
|
||||
cpu_type_t type;
|
||||
cpu_subtype_t subtype;
|
||||
if (macho_cpu_type_for_arch_name(arch_name, &type, &subtype)) {
|
||||
|
@ -114,7 +114,7 @@ std::optional<ArchInfo> GetArchInfoFromName(const char* arch_name) {
|
|||
}
|
||||
|
||||
const char* GetNameFromCPUType(cpu_type_t cpu_type, cpu_subtype_t cpu_subtype) {
|
||||
if (__builtin_available(macOS 13.0, iOS 16.0, *)) {
|
||||
if (__builtin_available(macOS 13.0, iOS 16.0, tvOS 16.0, *)) {
|
||||
const char* name = macho_arch_name_for_cpu_type(cpu_type, cpu_subtype);
|
||||
if (name) {
|
||||
return name;
|
||||
|
|
Loading…
Reference in a new issue