diff --git a/Sparkle/SPUDownloadData.h b/Sparkle/SPUDownloadData.h index 9d426ab1..41cd5743 100644 --- a/Sparkle/SPUDownloadData.h +++ b/Sparkle/SPUDownloadData.h @@ -6,7 +6,12 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // +#if __has_feature(modules) +@import Foundation; +#else #import +#endif + #import "SUExport.h" NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SPUStandardUpdaterController.h b/Sparkle/SPUStandardUpdaterController.h index f2b876aa..f50406e4 100644 --- a/Sparkle/SPUStandardUpdaterController.h +++ b/Sparkle/SPUStandardUpdaterController.h @@ -6,7 +6,12 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // +#if __has_feature(modules) +@import Cocoa; +#else #import +#endif + #import "SUExport.h" NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SPUStandardUserDriver.h b/Sparkle/SPUStandardUserDriver.h index e7e1330b..d84bcc14 100644 --- a/Sparkle/SPUStandardUserDriver.h +++ b/Sparkle/SPUStandardUserDriver.h @@ -6,7 +6,12 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // +#if __has_feature(modules) +@import Cocoa; +#else #import +#endif + #import "SPUUserDriver.h" #import "SPUStandardUserDriverProtocol.h" #import "SUExport.h" diff --git a/Sparkle/SPUStandardUserDriverDelegate.h b/Sparkle/SPUStandardUserDriverDelegate.h index 803644aa..c64f0ff8 100644 --- a/Sparkle/SPUStandardUserDriverDelegate.h +++ b/Sparkle/SPUStandardUserDriverDelegate.h @@ -6,7 +6,12 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // +#if __has_feature(modules) +@import Foundation; +#else #import +#endif + #import "SUExport.h" @protocol SUVersionDisplay; diff --git a/Sparkle/SPUUpdatePermissionRequest.h b/Sparkle/SPUUpdatePermissionRequest.h index d96a79b1..fc3d662a 100644 --- a/Sparkle/SPUUpdatePermissionRequest.h +++ b/Sparkle/SPUUpdatePermissionRequest.h @@ -6,7 +6,12 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // +#if __has_feature(modules) +@import Foundation; +#else #import +#endif + #import "SUExport.h" NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SPUUpdatePermissionResponse.h b/Sparkle/SPUUpdatePermissionResponse.h index 9d62e894..ab72965d 100644 --- a/Sparkle/SPUUpdatePermissionResponse.h +++ b/Sparkle/SPUUpdatePermissionResponse.h @@ -6,7 +6,12 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // +#if __has_feature(modules) +@import Foundation; +#else #import +#endif + #import "SUExport.h" /*! diff --git a/Sparkle/SPUUpdaterDelegate.h b/Sparkle/SPUUpdaterDelegate.h index 248b85da..d09d3294 100644 --- a/Sparkle/SPUUpdaterDelegate.h +++ b/Sparkle/SPUUpdaterDelegate.h @@ -6,7 +6,12 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // +#if __has_feature(modules) +@import Foundation; +#else #import +#endif + #import "SUExport.h" @protocol SUVersionComparison; diff --git a/Sparkle/SPUUpdaterSettings.h b/Sparkle/SPUUpdaterSettings.h index bdb467a9..5b62289c 100644 --- a/Sparkle/SPUUpdaterSettings.h +++ b/Sparkle/SPUUpdaterSettings.h @@ -6,7 +6,12 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // +#if __has_feature(modules) +@import Foundation; +#else #import +#endif + #import "SUExport.h" NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SPUUserDriver.h b/Sparkle/SPUUserDriver.h index fd2bac37..9e3ede71 100644 --- a/Sparkle/SPUUserDriver.h +++ b/Sparkle/SPUUserDriver.h @@ -6,7 +6,12 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // +#if __has_feature(modules) +@import Foundation; +#else #import +#endif + #import "SPUStatusCompletionResults.h" #import "SUExport.h" diff --git a/Sparkle/SPUUserDriverCoreComponent.h b/Sparkle/SPUUserDriverCoreComponent.h index 6f60e801..c2e7a431 100644 --- a/Sparkle/SPUUserDriverCoreComponent.h +++ b/Sparkle/SPUUserDriverCoreComponent.h @@ -6,7 +6,12 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // +#if __has_feature(modules) +@import Foundation; +#else #import +#endif + #import "SPUStatusCompletionResults.h" #import "SUExport.h" diff --git a/Sparkle/SUUpdaterDelegate.h b/Sparkle/SUUpdaterDelegate.h index ce21164d..c78ee764 100644 --- a/Sparkle/SUUpdaterDelegate.h +++ b/Sparkle/SUUpdaterDelegate.h @@ -6,7 +6,12 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // +#if __has_feature(modules) +@import Foundation; +#else #import +#endif + #import "SUExport.h" @protocol SUVersionComparison;