We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CPU_FEATURES_OS_MACOS
CPU_FEATURES_OS_IPHONE
1 parent ed3cc44 commit f7fe16fCopy full SHA for f7fe16f
include/cpu_features_macros.h
@@ -115,10 +115,10 @@
115
#if (defined(__apple__) || defined(__APPLE__) || defined(__MACH__))
116
// From https://stackoverflow.com/a/49560690
117
#include "TargetConditionals.h"
118
-#if defined(TARGET_OS_OSX)
+#if TARGET_OS_OSX
119
#define CPU_FEATURES_OS_MACOS
120
#endif
121
-#if defined(TARGET_OS_IPHONE)
+#if TARGET_OS_IPHONE
122
// This is set for any non-Mac Apple products (IOS, TV, WATCH)
123
#define CPU_FEATURES_OS_IPHONE
124
0 commit comments