From aa88b40b24d3808d1e4c57dae8e422ad5a95c25f Mon Sep 17 00:00:00 2001 From: Jake Petroules Date: Sat, 23 Aug 2014 21:46:16 -0400 Subject: [PATCH] Only export public symbols. --- Configurations/ConfigBinaryDelta.xcconfig | 1 - Configurations/ConfigCommon.xcconfig | 2 ++ Configurations/ConfigFramework.xcconfig | 1 + Configurations/ConfigUnitTest.xcconfig | 1 + README.markdown | 9 +++++ Sparkle.xcodeproj/project.pbxproj | 24 +++++++++---- Sparkle/SUAppcast.h | 4 ++- Sparkle/SUAppcastItem.h | 4 ++- Sparkle/SUBinCompat.c | 43 ----------------------- Sparkle/SUBinaryDeltaApply.m | 2 +- Sparkle/SUExport.h | 18 ++++++++++ Sparkle/SUStandardVersionComparator.h | 4 +-- Sparkle/SUUpdater.h | 15 ++++---- Sparkle/SUVersionComparisonProtocol.h | 1 + Sparkle/SUVersionDisplayProtocol.h | 2 +- Sparkle/Sparkle.h | 6 ++-- Vendor/bsdiff/bspatch.c | 2 +- 17 files changed, 72 insertions(+), 67 deletions(-) delete mode 100644 Sparkle/SUBinCompat.c create mode 100644 Sparkle/SUExport.h diff --git a/Configurations/ConfigBinaryDelta.xcconfig b/Configurations/ConfigBinaryDelta.xcconfig index 9a538d71..912b8190 100644 --- a/Configurations/ConfigBinaryDelta.xcconfig +++ b/Configurations/ConfigBinaryDelta.xcconfig @@ -1,4 +1,3 @@ // BinaryDelta tool only PRODUCT_NAME = BinaryDelta -LD_RUNPATH_SEARCH_PATHS = @executable_path/ diff --git a/Configurations/ConfigCommon.xcconfig b/Configurations/ConfigCommon.xcconfig index 218f7efd..477cf746 100644 --- a/Configurations/ConfigCommon.xcconfig +++ b/Configurations/ConfigCommon.xcconfig @@ -23,6 +23,8 @@ CURRENT_PROJECT_VERSION = $(SPARKLE_VERSION) ALWAYS_SEARCH_USER_PATHS = NO GCC_PRECOMPILE_PREFIX_HEADER = YES GCC_PREFIX_HEADER = Sparkle/Sparkle.pch +GCC_SYMBOLS_PRIVATE_EXTERN = YES +GCC_INLINES_ARE_PRIVATE_EXTERN = YES ARCHS = $(ARCHS_STANDARD) MACOSX_DEPLOYMENT_TARGET = 10.7 diff --git a/Configurations/ConfigFramework.xcconfig b/Configurations/ConfigFramework.xcconfig index d45bcdbb..a2f4058a 100644 --- a/Configurations/ConfigFramework.xcconfig +++ b/Configurations/ConfigFramework.xcconfig @@ -7,4 +7,5 @@ PRODUCT_NAME = Sparkle WRAPPER_EXTENSION = framework FRAMEWORK_VERSION = A INFOPLIST_FILE = Sparkle/Sparkle-Info.plist +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) BUILDING_SPARKLE=1 OTHER_LDFLAGS = -Wl,-U,_NSURLQuarantinePropertiesKey diff --git a/Configurations/ConfigUnitTest.xcconfig b/Configurations/ConfigUnitTest.xcconfig index 444eede4..73900eca 100644 --- a/Configurations/ConfigUnitTest.xcconfig +++ b/Configurations/ConfigUnitTest.xcconfig @@ -4,6 +4,7 @@ INFOPLIST_FILE = Tests/SparkleTests-Info.plist PRODUCT_NAME = Sparkle Unit Tests WRAPPER_EXTENSION = xctest OTHER_CFLAGS = $(inherited) -iframework"$(DEVELOPER_FRAMEWORKS_DIR)" -iframework"$(PLATFORM_DIR)/Developer/Library/Frameworks" +GCC_SYMBOLS_PRIVATE_EXTERN = NO WARNING_CFLAGS = $(inherited) -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments FRAMEWORK_SEARCH_PATHS = $(inherited) $(DEVELOPER_FRAMEWORKS_DIR) LD_RUNPATH_SEARCH_PATHS = @loader_path/../Frameworks diff --git a/README.markdown b/README.markdown index b73d22eb..2f34142d 100644 --- a/README.markdown +++ b/README.markdown @@ -28,3 +28,12 @@ is an easy-to-use software update framework for Cocoa developers. * Optionally sends system information to the server when checking for updates. * Supports bundles, preference panes, plugins, and other non-.app software. Can install .pkg files for more complicated products. * Supports branches due to minimum OS version requirements. + +## Developers + +Building Sparkle requires Xcode 5 or above. + +### API + +Sparkle is built with `-fvisibility=hidden -fvisibility-inlines-hidden` which means no symbols are exported by default. +If you are adding a symbol to the public API you must decorate the declaration with the `SU_EXPORT` macro (grep the source code for examples). diff --git a/Sparkle.xcodeproj/project.pbxproj b/Sparkle.xcodeproj/project.pbxproj index 8a38ea79..de5fec70 100644 --- a/Sparkle.xcodeproj/project.pbxproj +++ b/Sparkle.xcodeproj/project.pbxproj @@ -31,6 +31,14 @@ 142E0E0219A6A14700E4312B /* Sparkle.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 8DC2EF5B0486A6940098B216 /* Sparkle.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 142E0E0419A6A26F00E4312B /* Autoupdate.app in CopyFiles */ = {isa = PBXBuildFile; fileRef = 55C14BB7136EEF1500649790 /* Autoupdate.app */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; 142E0E0919A83AAC00E4312B /* SUBinaryDeltaTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 142E0E0819A83AAC00E4312B /* SUBinaryDeltaTest.m */; }; + 14652F7C19A9725300959E44 /* SUBinaryDeltaCommon.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8E20FD68CC7005AE3F6 /* SUBinaryDeltaCommon.m */; }; + 14652F7D19A9726700959E44 /* SUBinaryDeltaApply.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8E00FD68CC7005AE3F6 /* SUBinaryDeltaApply.m */; }; + 14652F7E19A9728A00959E44 /* bspatch.c in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8DC0FD68CB9005AE3F6 /* bspatch.c */; settings = {COMPILER_FLAGS = "-w"; }; }; + 14652F7F19A973F900959E44 /* SUDSAVerifier.m in Sources */ = {isa = PBXBuildFile; fileRef = 61299A2E09CA2DAB00B7442F /* SUDSAVerifier.m */; }; + 14652F8019A9740F00959E44 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 61B5F8F609C4CEB300B25A18 /* Security.framework */; }; + 14652F8119A9744200959E44 /* SUBinaryDeltaCommon.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8E20FD68CC7005AE3F6 /* SUBinaryDeltaCommon.m */; }; + 14652F8219A9746000959E44 /* SULog.m in Sources */ = {isa = PBXBuildFile; fileRef = 55C14F05136EF6DB00649790 /* SULog.m */; }; + 14652F8419A978C200959E44 /* SUExport.h in Headers */ = {isa = PBXBuildFile; fileRef = 14652F8319A9759F00959E44 /* SUExport.h */; settings = {ATTRIBUTES = (Public, ); }; }; 14732BC01960F2C200593899 /* test_app_only_dsa_pub.pem in Resources */ = {isa = PBXBuildFile; fileRef = 14732BBF1960F0AC00593899 /* test_app_only_dsa_pub.pem */; }; 14732BD019610A0D00593899 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D69BFE84028FC02AAC07 /* Foundation.framework */; }; 14732BD119610A1200593899 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D6A5FE840307C02AAC07 /* AppKit.framework */; }; @@ -65,9 +73,7 @@ 55C14F7E136F005000649790 /* SUPlainInstallerInternals.m in Sources */ = {isa = PBXBuildFile; fileRef = 61B5F8E509C4CE3C00B25A18 /* SUPlainInstallerInternals.m */; }; 55C14F9A136F045400649790 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 61B5F8F609C4CEB300B25A18 /* Security.framework */; }; 55C14FC7136F05E100649790 /* Sparkle.strings in Resources */ = {isa = PBXBuildFile; fileRef = 61AAE8220A321A7F00D8810D /* Sparkle.strings */; }; - 55C56926198D641F006B70AB /* SUBinCompat.c in Sources */ = {isa = PBXBuildFile; fileRef = 55C56925198D641F006B70AB /* SUBinCompat.c */; }; 5AF9DC3C1981DBEE001EA135 /* SUDSAVerifierTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 5AF9DC3B1981DBEE001EA135 /* SUDSAVerifierTest.m */; }; - 5D06E8D80FD68C8E005AE3F6 /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8DC2EF5B0486A6940098B216 /* Sparkle.framework */; }; 5D06E8E90FD68CDB005AE3F6 /* bsdiff.c in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8DB0FD68CB9005AE3F6 /* bsdiff.c */; settings = {COMPILER_FLAGS = "-w"; }; }; 5D06E8EA0FD68CDB005AE3F6 /* SUBinaryDeltaTool.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8E30FD68CC7005AE3F6 /* SUBinaryDeltaTool.m */; }; 5D06E8EB0FD68CE4005AE3F6 /* bspatch.c in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8DC0FD68CB9005AE3F6 /* bspatch.c */; settings = {COMPILER_FLAGS = "-w"; }; }; @@ -304,6 +310,7 @@ 1420DF4F196247F900203BB0 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 142E0E0819A83AAC00E4312B /* SUBinaryDeltaTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SUBinaryDeltaTest.m; path = Tests/SUBinaryDeltaTest.m; sourceTree = ""; }; 14652F7919A93E5F00959E44 /* set-git-version-info.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = "set-git-version-info.sh"; sourceTree = ""; }; + 14652F8319A9759F00959E44 /* SUExport.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SUExport.h; sourceTree = ""; }; 146EC84E19A68CF8004A50C5 /* Sparkle.podspec */ = {isa = PBXFileReference; lastKnownFileType = text; path = Sparkle.podspec; sourceTree = SOURCE_ROOT; }; 14732BB1195FF6B700593899 /* .clang-format */ = {isa = PBXFileReference; lastKnownFileType = text; path = ".clang-format"; sourceTree = SOURCE_ROOT; }; 14732BB91960EEEE00593899 /* SampleAppcast.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = SampleAppcast.xml; sourceTree = ""; }; @@ -387,7 +394,6 @@ 55C14F04136EF6DB00649790 /* SULog.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SULog.h; sourceTree = ""; }; 55C14F05136EF6DB00649790 /* SULog.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SULog.m; sourceTree = ""; }; 55C14F31136EFC2400649790 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; }; - 55C56925198D641F006B70AB /* SUBinCompat.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SUBinCompat.c; sourceTree = ""; }; 5AEF45D9189D1CC90030D7DC /* tr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = tr; path = tr.lproj/Sparkle.strings; sourceTree = ""; }; 5AF9DC3B1981DBEE001EA135 /* SUDSAVerifierTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SUDSAVerifierTest.m; path = Tests/SUDSAVerifierTest.m; sourceTree = ""; }; 5D06E8D00FD68C7C005AE3F6 /* BinaryDelta */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = BinaryDelta; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -560,7 +566,6 @@ 5D1AF58B0FD7678C0065DB48 /* libxar.1.dylib in Frameworks */, 5D1AF5900FD767AD0065DB48 /* libxml2.dylib in Frameworks */, 5D1AF59A0FD767E50065DB48 /* libz.dylib in Frameworks */, - 5D06E8D80FD68C8E005AE3F6 /* Sparkle.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -571,6 +576,7 @@ 14732BD119610A1200593899 /* AppKit.framework in Frameworks */, 14732BD019610A0D00593899 /* Foundation.framework in Frameworks */, 61FA52880E2D9EA400EF58AD /* Sparkle.framework in Frameworks */, + 14652F8019A9740F00959E44 /* Security.framework in Frameworks */, 14732BD319610A1800593899 /* XCTest.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; @@ -848,11 +854,11 @@ 61CFB3280E385186007A1735 /* Sparkle.pch */, 61299A5B09CA6D4500B7442F /* SUConstants.h */, 61299A5F09CA6EB100B7442F /* SUConstants.m */, + 14652F8319A9759F00959E44 /* SUExport.h */, 61EF67580E25C5B400F754E0 /* SUHost.h */, 61EF67550E25B58D00F754E0 /* SUHost.m */, 55C14F04136EF6DB00649790 /* SULog.h */, 55C14F05136EF6DB00649790 /* SULog.m */, - 55C56925198D641F006B70AB /* SUBinCompat.c */, ); includeInIndex = 1; name = "Other Sources"; @@ -963,6 +969,7 @@ 5D06E9390FD69271005AE3F6 /* SUBinaryDeltaUnarchiver.h in Headers */, 61B078CE15A5FB6100600039 /* SUCodeSigningVerifier.h in Headers */, 61299A5C09CA6D4500B7442F /* SUConstants.h in Headers */, + 14652F8419A978C200959E44 /* SUExport.h in Headers */, 6102FE4A0E07803800F85D09 /* SUDiskImageUnarchiver.h in Headers */, 61299A2F09CA2DAB00B7442F /* SUDSAVerifier.h in Headers */, 61EF67590E25C5B400F754E0 /* SUHost.h in Headers */, @@ -1349,6 +1356,9 @@ buildActionMask = 2147483647; files = ( 5D06E8E90FD68CDB005AE3F6 /* bsdiff.c in Sources */, + 14652F7E19A9728A00959E44 /* bspatch.c in Sources */, + 14652F7D19A9726700959E44 /* SUBinaryDeltaApply.m in Sources */, + 14652F7C19A9725300959E44 /* SUBinaryDeltaCommon.m in Sources */, 5D06E8EA0FD68CDB005AE3F6 /* SUBinaryDeltaTool.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -1357,6 +1367,9 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + 14652F8119A9744200959E44 /* SUBinaryDeltaCommon.m in Sources */, + 14652F7F19A973F900959E44 /* SUDSAVerifier.m in Sources */, + 14652F8219A9746000959E44 /* SULog.m in Sources */, 5AF9DC3C1981DBEE001EA135 /* SUDSAVerifierTest.m in Sources */, 142E0E0919A83AAC00E4312B /* SUBinaryDeltaTest.m in Sources */, 14950075195FDF5900BC5B5B /* SUUpdaterTest.m in Sources */, @@ -1401,7 +1414,6 @@ 61B93C0A0DD112FF00DCD2F8 /* SUScheduledUpdateDriver.m in Sources */, 61A225A50D1C4AC000430CCD /* SUStandardVersionComparator.m in Sources */, 6196CFFA09C72149000DC222 /* SUStatusController.m in Sources */, - 55C56926198D641F006B70AB /* SUBinCompat.c in Sources */, 61A2279D0D1CEE7600430CCD /* SUSystemProfiler.m in Sources */, 61B93A3D0DD02D7000DCD2F8 /* SUUIBasedUpdateDriver.m in Sources */, 61299A8E09CA790200B7442F /* SUUnarchiver.m in Sources */, diff --git a/Sparkle/SUAppcast.h b/Sparkle/SUAppcast.h index 702f549e..7d455231 100644 --- a/Sparkle/SUAppcast.h +++ b/Sparkle/SUAppcast.h @@ -9,10 +9,12 @@ #ifndef SUAPPCAST_H #define SUAPPCAST_H +#import "SUExport.h" + @protocol SUAppcastDelegate; @class SUAppcastItem; -@interface SUAppcast : NSObject +SU_EXPORT @interface SUAppcast : NSObject @property (weak) id delegate; @property (copy) NSString *userAgentString; diff --git a/Sparkle/SUAppcastItem.h b/Sparkle/SUAppcastItem.h index 3334a1af..551d389b 100644 --- a/Sparkle/SUAppcastItem.h +++ b/Sparkle/SUAppcastItem.h @@ -9,7 +9,9 @@ #ifndef SUAPPCASTITEM_H #define SUAPPCASTITEM_H -@interface SUAppcastItem : NSObject +#include "SUExport.h" + +SU_EXPORT @interface SUAppcastItem : NSObject @property (copy, readonly) NSString *title; @property (copy, readonly) NSDate *date; @property (copy, readonly) NSString *itemDescription; diff --git a/Sparkle/SUBinCompat.c b/Sparkle/SUBinCompat.c deleted file mode 100644 index 93376fc1..00000000 --- a/Sparkle/SUBinCompat.c +++ /dev/null @@ -1,43 +0,0 @@ -// -// SUBinCompat.c -// Sparkle -// -// Created by C.W. Betts on 8/2/14. -// Copyright (c) 2014 Sparkle Project. All rights reserved. -// Used to keep binary compatibility with older versions of Sparkle -// - -// No other headers are included, especially not the SUConstants header: -// The declarations here would conflict with the constants. -#include - - -extern OSStatus SUAppcastParseError; -extern OSStatus SUNoUpdateError; -extern OSStatus SUAppcastError; -extern OSStatus SURunningFromDiskImageError; -extern OSStatus SUTemporaryDirectoryError; -extern OSStatus SUUnarchivingError; -extern OSStatus SUSignatureError; -extern OSStatus SUFileCopyFailure; -extern OSStatus SUAuthenticationFailure; -extern OSStatus SUMissingUpdateError; -extern OSStatus SUMissingInstallerToolError; -extern OSStatus SURelaunchError; -extern OSStatus SUInstallationError; -extern OSStatus SUDowngradeError; - -OSStatus SUAppcastParseError = 1000; -OSStatus SUNoUpdateError = 1001; -OSStatus SUAppcastError = 1002; -OSStatus SURunningFromDiskImageError = 1003; -OSStatus SUTemporaryDirectoryError = 2000; -OSStatus SUUnarchivingError = 3000; -OSStatus SUSignatureError = 3001; -OSStatus SUFileCopyFailure = 4000; -OSStatus SUAuthenticationFailure = 4001; -OSStatus SUMissingUpdateError = 4002; -OSStatus SUMissingInstallerToolError = 4003; -OSStatus SURelaunchError = 4004; -OSStatus SUInstallationError = 4005; -OSStatus SUDowngradeError = 4006; diff --git a/Sparkle/SUBinaryDeltaApply.m b/Sparkle/SUBinaryDeltaApply.m index f19f76f3..85dbd0cd 100644 --- a/Sparkle/SUBinaryDeltaApply.m +++ b/Sparkle/SUBinaryDeltaApply.m @@ -10,7 +10,7 @@ #import "SUBinaryDeltaCommon.h" #include #import -#include +#include "bspatch.h" #include #include #include diff --git a/Sparkle/SUExport.h b/Sparkle/SUExport.h new file mode 100644 index 00000000..3e3f8a16 --- /dev/null +++ b/Sparkle/SUExport.h @@ -0,0 +1,18 @@ +// +// SUExport.h +// Sparkle +// +// Created by Jake Petroules on 2014-08-23. +// Copyright (c) 2014 Sparkle Project. All rights reserved. +// + +#ifndef SUEXPORT_H +#define SUEXPORT_H + +#ifdef BUILDING_SPARKLE +#define SU_EXPORT __attribute__((visibility("default"))) +#else +#define SU_EXPORT +#endif + +#endif diff --git a/Sparkle/SUStandardVersionComparator.h b/Sparkle/SUStandardVersionComparator.h index f40d5715..73ac968b 100644 --- a/Sparkle/SUStandardVersionComparator.h +++ b/Sparkle/SUStandardVersionComparator.h @@ -9,7 +9,7 @@ #ifndef SUSTANDARDVERSIONCOMPARATOR_H #define SUSTANDARDVERSIONCOMPARATOR_H - +#import "SUExport.h" #import "SUVersionComparisonProtocol.h" /*! @@ -19,7 +19,7 @@ It's "dumb" in that it does essentially string comparison, in components split by character type. */ -@interface SUStandardVersionComparator : NSObject +SU_EXPORT @interface SUStandardVersionComparator : NSObject /*! Returns a singleton instance of the comparator. diff --git a/Sparkle/SUUpdater.h b/Sparkle/SUUpdater.h index 6bdb49cc..f83fed5b 100644 --- a/Sparkle/SUUpdater.h +++ b/Sparkle/SUUpdater.h @@ -9,6 +9,7 @@ #ifndef SUUPDATER_H #define SUUPDATER_H +#import "SUExport.h" #import "SUVersionComparisonProtocol.h" #import "SUVersionDisplayProtocol.h" @@ -22,7 +23,7 @@ This class is used to configure the update paramters as well as manually and automatically schedule and control checks for updates. */ -@interface SUUpdater : NSObject +SU_EXPORT @interface SUUpdater : NSObject @property (weak) IBOutlet id delegate; @@ -107,17 +108,17 @@ // SUUpdater Notifications for events that might be interesting to more than just the delegate // The updater will be the notification object // ----------------------------------------------------------------------------- -extern NSString *const SUUpdaterDidFinishLoadingAppCastNotification; -extern NSString *const SUUpdaterDidFindValidUpdateNotification; -extern NSString *const SUUpdaterDidNotFindUpdateNotification; -extern NSString *const SUUpdaterWillRestartNotification; +SU_EXPORT extern NSString *const SUUpdaterDidFinishLoadingAppCastNotification; +SU_EXPORT extern NSString *const SUUpdaterDidFindValidUpdateNotification; +SU_EXPORT extern NSString *const SUUpdaterDidNotFindUpdateNotification; +SU_EXPORT extern NSString *const SUUpdaterWillRestartNotification; #define SUUpdaterWillRelaunchApplicationNotification SUUpdaterWillRestartNotification; #define SUUpdaterWillInstallUpdateNotification SUUpdaterWillRestartNotification; // Key for the SUAppcastItem object in the SUUpdaterDidFindValidUpdateNotification userInfo -extern NSString *const SUUpdaterAppcastItemNotificationKey; +SU_EXPORT extern NSString *const SUUpdaterAppcastItemNotificationKey; // Key for the SUAppcast object in the SUUpdaterDidFinishLoadingAppCastNotification userInfo -extern NSString *const SUUpdaterAppcastNotificationKey; +SU_EXPORT extern NSString *const SUUpdaterAppcastNotificationKey; // ----------------------------------------------------------------------------- // SUUpdater Delegate: diff --git a/Sparkle/SUVersionComparisonProtocol.h b/Sparkle/SUVersionComparisonProtocol.h index d3fb3d2b..10c42669 100644 --- a/Sparkle/SUVersionComparisonProtocol.h +++ b/Sparkle/SUVersionComparisonProtocol.h @@ -10,6 +10,7 @@ #define SUVERSIONCOMPARISONPROTOCOL_H #import +#import "SUExport.h" /*! Provides version comparison facilities for Sparkle. diff --git a/Sparkle/SUVersionDisplayProtocol.h b/Sparkle/SUVersionDisplayProtocol.h index 697f1a87..97fae4c9 100644 --- a/Sparkle/SUVersionDisplayProtocol.h +++ b/Sparkle/SUVersionDisplayProtocol.h @@ -7,7 +7,7 @@ // #import - +#import "SUExport.h" /*! Applies special display formatting to version numbers. diff --git a/Sparkle/Sparkle.h b/Sparkle/Sparkle.h index 954ca519..555cb6f6 100644 --- a/Sparkle/Sparkle.h +++ b/Sparkle/Sparkle.h @@ -12,11 +12,11 @@ // 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: -#import - #import #import -#import #import +#import +#import +#import #endif diff --git a/Vendor/bsdiff/bspatch.c b/Vendor/bsdiff/bspatch.c index d1f8ce94..7c8c238e 100644 --- a/Vendor/bsdiff/bspatch.c +++ b/Vendor/bsdiff/bspatch.c @@ -28,7 +28,7 @@ __FBSDID("$FreeBSD: src/usr.bin/bsdiff/bspatch/bspatch.c,v 1.1 2005/08/06 01:59:06 cperciva Exp $"); #endif -#include +#include "bspatch.h" #include #include #include