Use @import module syntax in exported headers if available

This will decrease compiler warnings to module-based projects that include Sparkle.
This commit is contained in:
Zorg committed 2016-08-29 23:59:10 -04:00
1 parent cc38a3d7a6
commit b911b8c540
11 files changed
+55

No files matched your search

+5
View File
@@ -6,7 +6,12 @@
// Copyright © 2016 Sparkle Project. All rights reserved.
//
#if __has_feature(modules)
@import Foundation;
#else
#import <Foundation/Foundation.h>
#endif
#import "SUExport.h"
NS_ASSUME_NONNULL_BEGIN
+5
View File
@@ -6,7 +6,12 @@
// Copyright © 2016 Sparkle Project. All rights reserved.
//
#if __has_feature(modules)
@import Cocoa;
#else
#import <Cocoa/Cocoa.h>
#endif
#import "SUExport.h"
NS_ASSUME_NONNULL_BEGIN
+5
View File
@@ -6,7 +6,12 @@
// Copyright © 2016 Sparkle Project. All rights reserved.
//
#if __has_feature(modules)
@import Cocoa;
#else
#import <Cocoa/Cocoa.h>
#endif
#import "SPUUserDriver.h"
#import "SPUStandardUserDriverProtocol.h"
#import "SUExport.h"
+5
View File
@@ -6,7 +6,12 @@
// Copyright © 2016 Sparkle Project. All rights reserved.
//
#if __has_feature(modules)
@import Foundation;
#else
#import <Foundation/Foundation.h>
#endif
#import "SUExport.h"
@protocol SUVersionDisplay;
+5
View File
@@ -6,7 +6,12 @@
// Copyright © 2016 Sparkle Project. All rights reserved.
//
#if __has_feature(modules)
@import Foundation;
#else
#import <Foundation/Foundation.h>
#endif
#import "SUExport.h"
NS_ASSUME_NONNULL_BEGIN
+5
View File
@@ -6,7 +6,12 @@
// Copyright © 2016 Sparkle Project. All rights reserved.
//
#if __has_feature(modules)
@import Foundation;
#else
#import <Foundation/Foundation.h>
#endif
#import "SUExport.h"
/*!
+5
View File
@@ -6,7 +6,12 @@
// Copyright © 2016 Sparkle Project. All rights reserved.
//
#if __has_feature(modules)
@import Foundation;
#else
#import <Foundation/Foundation.h>
#endif
#import "SUExport.h"
@protocol SUVersionComparison;
+5
View File
@@ -6,7 +6,12 @@
// Copyright © 2016 Sparkle Project. All rights reserved.
//
#if __has_feature(modules)
@import Foundation;
#else
#import <Foundation/Foundation.h>
#endif
#import "SUExport.h"
NS_ASSUME_NONNULL_BEGIN
+5
View File
@@ -6,7 +6,12 @@
// Copyright © 2016 Sparkle Project. All rights reserved.
//
#if __has_feature(modules)
@import Foundation;
#else
#import <Foundation/Foundation.h>
#endif
#import "SPUStatusCompletionResults.h"
#import "SUExport.h"
+5
View File
@@ -6,7 +6,12 @@
// Copyright © 2016 Sparkle Project. All rights reserved.
//
#if __has_feature(modules)
@import Foundation;
#else
#import <Foundation/Foundation.h>
#endif
#import "SPUStatusCompletionResults.h"
#import "SUExport.h"
+5
View File
@@ -6,7 +6,12 @@
// Copyright © 2016 Sparkle Project. All rights reserved.
//
#if __has_feature(modules)
@import Foundation;
#else
#import <Foundation/Foundation.h>
#endif
#import "SUExport.h"
@protocol SUVersionComparison;