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.
1 parent 2ee834d commit d4af4bcCopy full SHA for d4af4bc
1 file changed
Sources/AnyPromise.h
@@ -12,11 +12,12 @@
12
// declaration and needs to be defined. This is just to
13
// silence a compile error which would avoid building
14
// the Swift-Module on first builds.
15
+
16
#if __has_include("PromiseKit-Swift.h")
17
#import "PromiseKit-Swift.h"
18
#elif __has_include("PromiseKit/PromiseKit-Swift.h")
19
#import <PromiseKit/PromiseKit-Swift.h>
-#elif SWIFT_PACKAGE
20
+#elif SWIFT_PACKAGE && __has_feature(modules)
21
@import PromiseKit;
22
#else
23
@interface AnyPromise
0 commit comments