OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2016 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
| 11 #ifdef __OBJC__ |
| 12 |
11 #if !defined(__has_feature) || !__has_feature(objc_arc) | 13 #if !defined(__has_feature) || !__has_feature(objc_arc) |
12 #error "This file requires ARC support." | 14 #error "This file requires ARC support." |
13 #endif | 15 #endif |
14 | 16 |
15 #if !defined(__has_feature) || !__has_feature(nullability) | 17 #if !defined(__has_feature) || !__has_feature(nullability) |
16 #error "This file requires nullability support." | 18 #error "This file requires nullability support." |
17 #endif | 19 #endif |
18 | 20 |
19 // The following nonnull macros were introduced in OSX SDK 10.10.3. However, | 21 // The following nonnull macros were introduced in OSX SDK 10.10.3. However, |
20 // the bots appear to be running something older. We define them here if they | 22 // the bots appear to be running something older. We define them here if they |
21 // aren't already defined in NSObjCRuntime.h | 23 // aren't already defined in NSObjCRuntime.h |
22 #ifdef __OBJC__ | |
23 | |
24 #include <Foundation/NSObjCRuntime.h> | 24 #include <Foundation/NSObjCRuntime.h> |
25 | 25 |
26 #if !defined(NS_ASSUME_NONNULL_BEGIN) | 26 #if !defined(NS_ASSUME_NONNULL_BEGIN) |
27 #define NS_ASSUME_NONNULL_BEGIN | 27 #define NS_ASSUME_NONNULL_BEGIN |
28 #endif | 28 #endif |
29 | 29 |
30 #if !defined(NS_ASSUME_NONNULL_END) | 30 #if !defined(NS_ASSUME_NONNULL_END) |
31 #define NS_ASSUME_NONNULL_END | 31 #define NS_ASSUME_NONNULL_END |
32 #endif | 32 #endif |
33 | 33 |
34 #endif | 34 #endif // __OBJC__ |
OLD | NEW |