diff --git a/Sparkle/SULog.m b/Sparkle/SULog.m index 7faa0a6d..ab417b8f 100644 --- a/Sparkle/SULog.m +++ b/Sparkle/SULog.m @@ -7,15 +7,29 @@ // #include "SULog.h" + #include +#include + +#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 101200 #include +#else + +typedef struct os_log_s *os_log_t; +#define os_log_create(subsystem, category) nil + +#define os_log(log, format, ...) +#define os_log_error(log, format, ...) + +#endif + +#include "AppKitPrevention.h" #import "SUOperatingSystem.h" // For converting constants to string literals using the preprocessor #define STRINGIFY(x) #x #define TO_STRING(x) STRINGIFY(x) -#include "AppKitPrevention.h" void SULog(SULogLevel level, NSString *format, ...) { @@ -30,6 +44,9 @@ void SULog(SULogLevel level, NSString *format, ...) NSBundle *mainBundle = [NSBundle mainBundle]; hasOSLogging = [SUOperatingSystem isOperatingSystemAtLeastVersion:(NSOperatingSystemVersion){10, 12, 0}]; +#if __MAC_OS_X_VERSION_MAX_ALLOWED < 101200 + hasOSLogging = NO; +#endif if (hasOSLogging) { const char *subsystem = SPARKLE_BUNDLE_IDENTIFIER; diff --git a/Sparkle/SUStatus.xib b/Sparkle/SUStatus.xib index cb6a8084..56053034 100644 --- a/Sparkle/SUStatus.xib +++ b/Sparkle/SUStatus.xib @@ -1,9 +1,9 @@ - - + + - - - + + + @@ -15,7 +15,7 @@ - + @@ -55,7 +55,7 @@