From f3a151d473d4180942ef1a76302f6f019105fe5b Mon Sep 17 00:00:00 2001 From: "B. Kevin Hardman" Date: Thu, 16 Jun 2016 12:16:31 -0400 Subject: [PATCH] update Sparkle framework headers to use modules if modules are available --- Sparkle/SUAppcast.h | 4 ++++ Sparkle/SUAppcastItem.h | 4 ++++ Sparkle/SUErrors.h | 4 ++++ Sparkle/SUStandardVersionComparator.h | 4 ++++ Sparkle/SUUpdater.h | 4 ++++ Sparkle/SUVersionComparisonProtocol.h | 4 ++++ Sparkle/SUVersionDisplayProtocol.h | 4 ++++ Sparkle/Sparkle.h | 4 ++++ 8 files changed, 32 insertions(+) diff --git a/Sparkle/SUAppcast.h b/Sparkle/SUAppcast.h index a035f18f..fee97567 100644 --- a/Sparkle/SUAppcast.h +++ b/Sparkle/SUAppcast.h @@ -9,7 +9,11 @@ #ifndef SUAPPCAST_H #define SUAPPCAST_H +#if __has_feature(modules) +@import Foundation; +#else #import +#endif #import "SUExport.h" @class SUAppcastItem; diff --git a/Sparkle/SUAppcastItem.h b/Sparkle/SUAppcastItem.h index 47b6ee48..51b9393f 100644 --- a/Sparkle/SUAppcastItem.h +++ b/Sparkle/SUAppcastItem.h @@ -9,7 +9,11 @@ #ifndef SUAPPCASTITEM_H #define SUAPPCASTITEM_H +#if __has_feature(modules) +@import Foundation; +#else #import +#endif #import "SUExport.h" SU_EXPORT @interface SUAppcastItem : NSObject diff --git a/Sparkle/SUErrors.h b/Sparkle/SUErrors.h index 93da51a7..8557d7fb 100644 --- a/Sparkle/SUErrors.h +++ b/Sparkle/SUErrors.h @@ -9,7 +9,11 @@ #ifndef SUERRORS_H #define SUERRORS_H +#if __has_feature(modules) +@import Foundation; +#else #import +#endif #import "SUExport.h" /** diff --git a/Sparkle/SUStandardVersionComparator.h b/Sparkle/SUStandardVersionComparator.h index d7f2a48c..2eaee42f 100644 --- a/Sparkle/SUStandardVersionComparator.h +++ b/Sparkle/SUStandardVersionComparator.h @@ -9,7 +9,11 @@ #ifndef SUSTANDARDVERSIONCOMPARATOR_H #define SUSTANDARDVERSIONCOMPARATOR_H +#if __has_feature(modules) +@import Foundation; +#else #import +#endif #import "SUExport.h" #import "SUVersionComparisonProtocol.h" diff --git a/Sparkle/SUUpdater.h b/Sparkle/SUUpdater.h index 86024858..435f649e 100644 --- a/Sparkle/SUUpdater.h +++ b/Sparkle/SUUpdater.h @@ -9,7 +9,11 @@ #ifndef SUUPDATER_H #define SUUPDATER_H +#if __has_feature(modules) +@import Foundation; +#else #import +#endif #import "SUExport.h" #import "SUVersionComparisonProtocol.h" #import "SUVersionDisplayProtocol.h" diff --git a/Sparkle/SUVersionComparisonProtocol.h b/Sparkle/SUVersionComparisonProtocol.h index 10c42669..c099ad57 100644 --- a/Sparkle/SUVersionComparisonProtocol.h +++ b/Sparkle/SUVersionComparisonProtocol.h @@ -9,7 +9,11 @@ #ifndef SUVERSIONCOMPARISONPROTOCOL_H #define SUVERSIONCOMPARISONPROTOCOL_H +#if __has_feature(modules) +@import Cocoa; +#else #import +#endif #import "SUExport.h" /*! diff --git a/Sparkle/SUVersionDisplayProtocol.h b/Sparkle/SUVersionDisplayProtocol.h index 97fae4c9..16e444ff 100644 --- a/Sparkle/SUVersionDisplayProtocol.h +++ b/Sparkle/SUVersionDisplayProtocol.h @@ -6,7 +6,11 @@ // Copyright 2009 Elgato Systems GmbH. All rights reserved. // +#if __has_feature(modules) +@import Cocoa; +#else #import +#endif #import "SUExport.h" /*! diff --git a/Sparkle/Sparkle.h b/Sparkle/Sparkle.h index 20ed6979..ab828c29 100644 --- a/Sparkle/Sparkle.h +++ b/Sparkle/Sparkle.h @@ -9,7 +9,11 @@ #ifndef SPARKLE_H #define SPARKLE_H +#if __has_feature(modules) +@import Cocoa; +#else #import +#endif // This list should include the shared headers. It doesn't matter if some of them aren't shared (unless // there are name-space collisions) so we can list all of them to start with: