1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-11-21 09:34:53 +00:00

cpu_features: Fix broken CPU_FEATURES_OS_MACOS and CPU_FEATURES_OS_IPHONE detection

This commit is contained in:
Carles Fernandez
2025-08-27 20:44:08 +02:00
parent 4797b2b177
commit a1c3039a5d

View File

@@ -104,10 +104,10 @@
#if (defined(__apple__) || defined(__APPLE__) || defined(__MACH__))
// From https://stackoverflow.com/a/49560690
#include "TargetConditionals.h"
#if defined(TARGET_OS_OSX)
#if TARGET_OS_OSX
#define CPU_FEATURES_OS_MACOS
#endif
#if defined(TARGET_OS_IPHONE)
#if TARGET_OS_IPHONE
// This is set for any non-Mac Apple products (IOS, TV, WATCH)
#define CPU_FEATURES_OS_IPHONE
#endif