Skip to content

Commit d0f1385

Browse files
committed
TARGET_OS_* is defined by TargetConditionals.h, so don't use it to gate its own include.
1 parent 76e7782 commit d0f1385

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CoreFoundation/Base.subproj/CoreFoundation_Prefix.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
#ifndef __COREFOUNDATION_PREFIX_H__
1111
#define __COREFOUNDATION_PREFIX_H__ 1
1212

13-
#if TARGET_OS_MAC
14-
#include <TargetConditionals.h>
15-
#else
13+
#if __has_include(<CoreFoundation/TargetConditionals.h>)
1614
#include <CoreFoundation/TargetConditionals.h>
15+
#else
16+
#include <TargetConditionals.h>
1717
#endif
1818

1919
#define _DARWIN_UNLIMITED_SELECT 1

0 commit comments

Comments
 (0)