[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/2] Disable unavailable features on older macOS
From: |
Joelle van Dyne |
Subject: |
[PATCH 0/2] Disable unavailable features on older macOS |
Date: |
Sun, 22 Dec 2024 20:09:43 -0800 |
Some features require APIs introduced in a recent version of macOS. Currently,
this is not checked anywhere and so either the build will fail (if building with
an older version of Xcode) or will throw a warning and then crash if run on an
older machine. The correct way to handle this is with availabilty checks. The
checks are a clang extension that only works on Apple platforms but these files
are only built for Apple platforms already and link with Apple frameworks.
Joelle van Dyne (2):
vmnet: disable unavailable features on older macOS
hvf: arm: disable unavailable features on older macOS
net/vmnet-host.c | 48 ++++++++++++++++++++++++++------------
net/vmnet-shared.c | 23 ++++++++++++++----
target/arm/hvf/hvf.c | 55 ++++++++++++++++++++++++++++----------------
net/vmnet-bridged.m | 18 ++++++++++++---
4 files changed, 101 insertions(+), 43 deletions(-)
--
2.41.0
- [PATCH 0/2] Disable unavailable features on older macOS,
Joelle van Dyne <=