Unreviewed attempt to fix build with older SDKs after r239110.
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Dec 2018 18:23:50 +0000 (18:23 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Dec 2018 18:23:50 +0000 (18:23 +0000)
* Platform/cocoa/WKCrashReporter.mm:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@239112 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/Platform/cocoa/WKCrashReporter.mm

index 962d113..c178af7 100644 (file)
@@ -1,5 +1,11 @@
 2018-12-12  Chris Dumez  <cdumez@apple.com>
 
+        Unreviewed attempt to fix build with older SDKs after r239110.
+
+        * Platform/cocoa/WKCrashReporter.mm:
+
+2018-12-12  Chris Dumez  <cdumez@apple.com>
+
         Unreviewed, fix build with recent SDKs.
 
         * Platform/cocoa/WKCrashReporter.mm:
index 331607c..492d68a 100644 (file)
 #import "CrashReporterClientSPI.h"
 
 // Avoid having to link with libCrashReporterClient.a
+#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 130000)
 CRASH_REPORTER_CLIENT_HIDDEN
 struct crashreporter_annotations_t gCRAnnotations
 __attribute__((section("__DATA," CRASHREPORTER_ANNOTATIONS_SECTION)))
     = { {CRASHREPORTER_ANNOTATIONS_VERSION}, {0}, {0}, {0}, {0}, {0}, {0}, {0} };
+#else
+CRASH_REPORTER_CLIENT_HIDDEN
+struct crashreporter_annotations_t gCRAnnotations
+__attribute__((section("__DATA," CRASHREPORTER_ANNOTATIONS_SECTION)))
+    = { CRASHREPORTER_ANNOTATIONS_VERSION, 0, 0, 0, 0, 0, 0, 0 };
+#endif
 
 namespace WebKit {