Skip to content

Commit d4af4bc

Browse files
DG0BABmxcl
authored andcommitted
Try to fix Travis build
1 parent 2ee834d commit d4af4bc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Sources/AnyPromise.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
// declaration and needs to be defined. This is just to
1313
// silence a compile error which would avoid building
1414
// the Swift-Module on first builds.
15+
1516
#if __has_include("PromiseKit-Swift.h")
1617
#import "PromiseKit-Swift.h"
1718
#elif __has_include("PromiseKit/PromiseKit-Swift.h")
1819
#import <PromiseKit/PromiseKit-Swift.h>
19-
#elif SWIFT_PACKAGE
20+
#elif SWIFT_PACKAGE && __has_feature(modules)
2021
@import PromiseKit;
2122
#else
2223
@interface AnyPromise

0 commit comments

Comments
 (0)