diff --git a/Sparkle/SPUAppcastItemStateResolver.h b/Sparkle/SPUAppcastItemStateResolver.h index 3d81d0b7..825a5e2e 100644 --- a/Sparkle/SPUAppcastItemStateResolver.h +++ b/Sparkle/SPUAppcastItemStateResolver.h @@ -6,14 +6,7 @@ // Copyright © 2021 Sparkle Project. All rights reserved. // -#if __has_feature(modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -@import Foundation; -#else #import -#endif #import diff --git a/Sparkle/SPUDownloadData.h b/Sparkle/SPUDownloadData.h index ead146cf..680b3989 100644 --- a/Sparkle/SPUDownloadData.h +++ b/Sparkle/SPUDownloadData.h @@ -6,14 +6,7 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#if __has_feature(modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -@import Foundation; -#else #import -#endif #ifdef BUILDING_SPARKLE_DOWNLOADER_SERVICE // Ignore incorrect warning diff --git a/Sparkle/SPUStandardUpdaterController.h b/Sparkle/SPUStandardUpdaterController.h index b84dd54d..a34100dc 100644 --- a/Sparkle/SPUStandardUpdaterController.h +++ b/Sparkle/SPUStandardUpdaterController.h @@ -6,14 +6,7 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#if __has_feature(modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -@import Foundation; -#else #import -#endif #import NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SPUStandardUserDriver.h b/Sparkle/SPUStandardUserDriver.h index f2ad0881..36eda907 100644 --- a/Sparkle/SPUStandardUserDriver.h +++ b/Sparkle/SPUStandardUserDriver.h @@ -6,14 +6,7 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#if __has_feature(modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -@import Foundation; -#else #import -#endif #import #import diff --git a/Sparkle/SPUStandardUserDriverDelegate.h b/Sparkle/SPUStandardUserDriverDelegate.h index 217ac915..93448649 100644 --- a/Sparkle/SPUStandardUserDriverDelegate.h +++ b/Sparkle/SPUStandardUserDriverDelegate.h @@ -6,14 +6,7 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#if __has_feature(modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -@import Foundation; -#else #import -#endif #import NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SPUUpdatePermissionRequest.h b/Sparkle/SPUUpdatePermissionRequest.h index f3e46c33..010e50bf 100644 --- a/Sparkle/SPUUpdatePermissionRequest.h +++ b/Sparkle/SPUUpdatePermissionRequest.h @@ -6,14 +6,7 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#if __has_feature(modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -@import Foundation; -#else #import -#endif #import NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SPUUpdater.h b/Sparkle/SPUUpdater.h index c9698a1e..da8fe8f3 100644 --- a/Sparkle/SPUUpdater.h +++ b/Sparkle/SPUUpdater.h @@ -6,14 +6,7 @@ // Copyright 2006 Andy Matuschak. All rights reserved. // -#if __has_feature(modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -@import Foundation; -#else #import -#endif #import #import diff --git a/Sparkle/SPUUpdaterDelegate.h b/Sparkle/SPUUpdaterDelegate.h index 0c381ef9..439afbb3 100644 --- a/Sparkle/SPUUpdaterDelegate.h +++ b/Sparkle/SPUUpdaterDelegate.h @@ -6,14 +6,7 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#if __has_feature(modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -@import Foundation; -#else #import -#endif #import #import diff --git a/Sparkle/SPUUpdaterSettings.h b/Sparkle/SPUUpdaterSettings.h index d27276dd..e2969b66 100644 --- a/Sparkle/SPUUpdaterSettings.h +++ b/Sparkle/SPUUpdaterSettings.h @@ -6,14 +6,7 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#if __has_feature(modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -@import Foundation; -#else #import -#endif #import NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SPUUserDriver.h b/Sparkle/SPUUserDriver.h index dae8b896..24280c88 100644 --- a/Sparkle/SPUUserDriver.h +++ b/Sparkle/SPUUserDriver.h @@ -6,14 +6,7 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#if __has_feature(modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -@import Foundation; -#else #import -#endif #import #import diff --git a/Sparkle/SPUUserUpdateState.h b/Sparkle/SPUUserUpdateState.h index 40ee4eba..f7fcc1e8 100644 --- a/Sparkle/SPUUserUpdateState.h +++ b/Sparkle/SPUUserUpdateState.h @@ -9,14 +9,7 @@ #ifndef SPUUserUpdateState_h #define SPUUserUpdateState_h -#if __has_feature(modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -@import Foundation; -#else #import -#endif #import diff --git a/Sparkle/SUAppcast+Private.h b/Sparkle/SUAppcast+Private.h index 30a22e71..bf6a0a8b 100644 --- a/Sparkle/SUAppcast+Private.h +++ b/Sparkle/SUAppcast+Private.h @@ -6,14 +6,7 @@ // Copyright © 2021 Sparkle Project. All rights reserved. // -#if __has_feature(modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -@import Foundation; -#else #import -#endif NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SUAppcast.h b/Sparkle/SUAppcast.h index 39d3f51e..3454b1b0 100644 --- a/Sparkle/SUAppcast.h +++ b/Sparkle/SUAppcast.h @@ -9,14 +9,7 @@ #ifndef SUAPPCAST_H #define SUAPPCAST_H -#if __has_feature(modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -@import Foundation; -#else #import -#endif #import NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SUAppcastItem+Private.h b/Sparkle/SUAppcastItem+Private.h index 77536148..f5b72c6f 100644 --- a/Sparkle/SUAppcastItem+Private.h +++ b/Sparkle/SUAppcastItem+Private.h @@ -9,14 +9,7 @@ #ifndef SUAppcastItem_Private_h #define SUAppcastItem_Private_h -#if __has_feature(modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -@import Foundation; -#else #import -#endif NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SUAppcastItem.h b/Sparkle/SUAppcastItem.h index 315ac801..944839f5 100644 --- a/Sparkle/SUAppcastItem.h +++ b/Sparkle/SUAppcastItem.h @@ -9,14 +9,7 @@ #ifndef SUAPPCASTITEM_H #define SUAPPCASTITEM_H -#if __has_feature(modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -@import Foundation; -#else #import -#endif #ifdef BUILDING_SPARKLE_TESTS // Ignore incorrect warning diff --git a/Sparkle/SUErrors.h b/Sparkle/SUErrors.h index f2632269..22bf6066 100644 --- a/Sparkle/SUErrors.h +++ b/Sparkle/SUErrors.h @@ -9,14 +9,7 @@ #ifndef SUERRORS_H #define SUERRORS_H -#if __has_feature(modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -@import Foundation; -#else #import -#endif #if defined(BUILDING_SPARKLE_TOOL) || defined(BUILDING_SPARKLE_TESTS) // Ignore incorrect warning diff --git a/Sparkle/SUStandardVersionComparator.h b/Sparkle/SUStandardVersionComparator.h index 1665ed40..b9cfae6f 100644 --- a/Sparkle/SUStandardVersionComparator.h +++ b/Sparkle/SUStandardVersionComparator.h @@ -9,14 +9,7 @@ #ifndef SUSTANDARDVERSIONCOMPARATOR_H #define SUSTANDARDVERSIONCOMPARATOR_H -#if __has_feature(modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -@import Foundation; -#else #import -#endif #ifdef BUILDING_SPARKLE_TOOL // Ignore incorrect warning diff --git a/Sparkle/SUUpdatePermissionResponse.h b/Sparkle/SUUpdatePermissionResponse.h index 141016fd..770d7540 100644 --- a/Sparkle/SUUpdatePermissionResponse.h +++ b/Sparkle/SUUpdatePermissionResponse.h @@ -6,14 +6,7 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#if __has_feature(modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -@import Foundation; -#else #import -#endif #import /** diff --git a/Sparkle/SUUpdater.h b/Sparkle/SUUpdater.h index bf43dc30..f2683245 100644 --- a/Sparkle/SUUpdater.h +++ b/Sparkle/SUUpdater.h @@ -9,14 +9,7 @@ #ifndef SUUPDATER_H #define SUUPDATER_H -#if __has_feature(modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -@import Foundation; -#else #import -#endif #import #import #import diff --git a/Sparkle/SUUpdaterDelegate.h b/Sparkle/SUUpdaterDelegate.h index 79decd4a..fa49e1fd 100644 --- a/Sparkle/SUUpdaterDelegate.h +++ b/Sparkle/SUUpdaterDelegate.h @@ -6,14 +6,7 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#if __has_feature(modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -@import Foundation; -#else #import -#endif #import @protocol SUVersionComparison, SUVersionDisplay; diff --git a/Sparkle/SUVersionComparisonProtocol.h b/Sparkle/SUVersionComparisonProtocol.h index d1587245..b21e90df 100644 --- a/Sparkle/SUVersionComparisonProtocol.h +++ b/Sparkle/SUVersionComparisonProtocol.h @@ -9,14 +9,7 @@ #ifndef SUVERSIONCOMPARISONPROTOCOL_H #define SUVERSIONCOMPARISONPROTOCOL_H -#if __has_feature(modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -@import Foundation; -#else #import -#endif #ifdef BUILDING_SPARKLE_TOOL // Ignore incorrect warning diff --git a/Sparkle/SUVersionDisplayProtocol.h b/Sparkle/SUVersionDisplayProtocol.h index 2407c8d5..736a28a8 100644 --- a/Sparkle/SUVersionDisplayProtocol.h +++ b/Sparkle/SUVersionDisplayProtocol.h @@ -6,14 +6,7 @@ // Copyright 2009 Elgato Systems GmbH. All rights reserved. // -#if __has_feature(modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -@import Foundation; -#else #import -#endif #import /**