From e1299934b154682d2b4d3217a1654bfa8d2f223b Mon Sep 17 00:00:00 2001 From: Olivier Halligon Date: Fri, 13 Mar 2015 00:13:22 +0100 Subject: [PATCH] Fixed #80 again, properly this time. --- CHANGELOG.md | 3 ++- OHHTTPStubs/Sources/OHHTTPStubsResponse.h | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 24a69ef9..833b81d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,10 +6,11 @@ _You can download previous versions [here](https://github.com/AliSoftware/OHHTTP * Splitted the Xcode projects for more clarity (one dedicated to build the lib and run Unit Tests, and one for the Demo) * Got rid of the `git submodule` used for Unit Tests against [AFNetworking](https://github.com/AFNetworking/AFNetworking) — it is now imported using [CocoaPods](http://cocoapods.org) and only for the lib's Unit Tests targets ([@corinnekrych](https://github.com/corinnekrych), [#90](https://github.com/AliSoftware/OHHTTPStubs/pull/90)) * Improved [Travis-CI](https://travis-ci.org/AliSoftware/OHHTTPStubs) integration. We now use a build matrix to have paralellized and independant builds for each scheme (iOS Static Lib, iOS Dynamic Framework, OSX Framework) +* Fixed [#80](https://github.com/AliSoftware/OHHTTPStubs/issues/80) again (there was still an issue for people using Xcode 5 & SDK 7.1… if those people still exists) ## [3.1.10](https://github.com/AliSoftware/OHHTTPStubs/releases/tag/3.1.10) -* Fix headers for people still building with Xcode 5 & SDK 7 (#80) +* Fix headers for people still building with Xcode 5 & SDK 7 ([#80](https://github.com/AliSoftware/OHHTTPStubs/issues/80)) ## [3.1.9](https://github.com/AliSoftware/OHHTTPStubs/releases/tag/3.1.9) diff --git a/OHHTTPStubs/Sources/OHHTTPStubsResponse.h b/OHHTTPStubs/Sources/OHHTTPStubsResponse.h index 9de3a638..6e2be7c1 100644 --- a/OHHTTPStubs/Sources/OHHTTPStubsResponse.h +++ b/OHHTTPStubs/Sources/OHHTTPStubsResponse.h @@ -22,6 +22,14 @@ * ***********************************************************************************/ +// For SDK 7.1 Compatibility (as this macro was only included starting SDK 8.0) +#ifndef NS_DESIGNATED_INITIALIZER + #if __has_attribute(objc_designated_initializer) + #define NS_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) + #else + #define NS_DESIGNATED_INITIALIZER + #endif +#endif //////////////////////////////////////////////////////////////////////////////// #pragma mark - Imports