Ben Murdoch | 097c5b2 | 2016-05-18 11:27:45 +0100 | [diff] [blame^] | 1 | /* Copyright (c) 2013 Google Inc. All rights reserved. |
| 2 | * Use of this source code is governed by a BSD-style license that can be |
| 3 | * found in the LICENSE file. */ |
| 4 | |
| 5 | #include <Availability.h> |
| 6 | |
| 7 | /* GYPTEST_MAC_VERSION_MIN: should be set to the corresponding value of |
| 8 | * xcode setting 'MACOSX_DEPLOYMENT_TARGET', otherwise both should be |
| 9 | * left undefined. |
| 10 | * |
| 11 | * GYPTEST_IOS_VERSION_MIN: should be set to the corresponding value of |
| 12 | * xcode setting 'IPHONEOS_DEPLOYMENT_TARGET', otherwise both should be |
| 13 | * left undefined. |
| 14 | */ |
| 15 | |
| 16 | #if defined(GYPTEST_MAC_VERSION_MIN) |
| 17 | # if GYPTEST_MAC_VERSION_MIN != __MAC_OS_X_VERSION_MIN_REQUIRED |
| 18 | # error __MAC_OS_X_VERSION_MIN_REQUIRED has wrong value |
| 19 | # endif |
| 20 | #elif defined(__MAC_OS_X_VERSION_MIN_REQUIRED) |
| 21 | # error __MAC_OS_X_VERSION_MIN_REQUIRED should be undefined |
| 22 | #endif |
| 23 | |
| 24 | #if defined(GYPTEST_IOS_VERSION_MIN) |
| 25 | # if GYPTEST_IOS_VERSION_MIN != __IPHONE_OS_VERSION_MIN_REQUIRED |
| 26 | # error __IPHONE_OS_VERSION_MIN_REQUIRED has wrong value |
| 27 | # endif |
| 28 | #elif defined(__IPHONE_OS_VERSION_MIN_REQUIRED) |
| 29 | # error __IPHONE_OS_VERSION_MIN_REQUIRED should be undefined |
| 30 | #endif |
| 31 | |
| 32 | int main() { return 0; } |
| 33 | |