Skip to content

Commit 2389ca0

Browse files
authored
Merge pull request #2653 from 3405691582/CFBase_AlwaysIncludeCoreFoundationTargetConditionals
[CF] Simplify including TargetConditionals.h.
2 parents e6be742 + a093e49 commit 2389ca0

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

CoreFoundation/Base.subproj/CFAvailability.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,7 @@
1010
#if !defined(__COREFOUNDATION_CFAVAILABILITY__)
1111
#define __COREFOUNDATION_CFAVAILABILITY__ 1
1212

13-
#if __has_include(<CoreFoundation/TargetConditionals.h>)
1413
#include <CoreFoundation/TargetConditionals.h>
15-
#elif __has_include(<TargetConditionals.h>)
16-
#include <TargetConditionals.h>
17-
#else
18-
#error Missing header TargetConditionals.h
19-
#endif
2014

2115
#if __has_include(<Availability.h>) && __has_include(<os/availability.h>) && __has_include(<AvailabilityMacros.h>)
2216
#include <Availability.h>

CoreFoundation/Base.subproj/CFBase.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@
1010
#if !defined(__COREFOUNDATION_CFBASE__)
1111
#define __COREFOUNDATION_CFBASE__ 1
1212

13-
#if DEPLOYMENT_RUNTIME_SWIFT
1413
#include <CoreFoundation/TargetConditionals.h>
15-
#else
16-
#include <TargetConditionals.h>
17-
#endif
1814
#include <CoreFoundation/CFAvailability.h>
1915

2016
#if (defined(__CYGWIN32__) || defined(_WIN32)) && !defined(__WIN32__)

0 commit comments

Comments
 (0)