Skip to content

Commit 080d513

Browse files
committed
Only #include <TargetConditionals.h> when it's present
1 parent 7f0130d commit 080d513

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/runtime/Private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include "swift/Runtime/Config.h"
2525
#include "swift/Runtime/Metadata.h"
2626

27-
#if defined(__APPLE__) && defined(__MACH__)
27+
#if defined(__APPLE__) && __has_include(<TargetConditionals.h>)
2828
#include <TargetConditionals.h>
2929
#endif
3030

0 commit comments

Comments
 (0)