Skip to content

Commit e030e37

Browse files
committed
[Backtracing] Fix macro test.
The `TARGET_OS_` macros are always defined; you need to test their values. rdar://137551812
1 parent 512e6b3 commit e030e37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/runtime/Backtrace.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ const char *presetToString(Preset preset) {
260260
bool isPrivileged() {
261261
return getauxval(AT_SECURE);
262262
}
263-
#elif defined(TARGET_OS_OSX) || defined(TARGET_OS_MACCATALYST)
263+
#elif TARGET_OS_OSX || TARGET_OS_MACCATALYST
264264
bool isPrivileged() {
265265
if (issetugid())
266266
return true;

0 commit comments

Comments
 (0)