diff options
author | Abseil Team <absl-team@google.com> | 2020-12-01 17:56:15 -0500 |
---|---|---|
committer | vslashg <gfalcon@google.com> | 2020-12-02 18:23:38 -0500 |
commit | b8c4edf95ba3dd9ee6577b13d9b3cc903809c492 (patch) | |
tree | 6c123aee8ec90f3b15b8a2b6261360e53632a53f /googletest/include/gtest | |
parent | d73706911133b38d8d855b9dbb6dec6b5134884f (diff) | |
download | googletest-b8c4edf95ba3dd9ee6577b13d9b3cc903809c492.tar.gz googletest-b8c4edf95ba3dd9ee6577b13d9b3cc903809c492.zip |
Googletest export
Include TargetConditionals.h before checking TARGET_OS_IPHONE
New versions of Clang require that you include TargetConditionals.h before checking the TARGET_OS_* macros. Include it where appropriate to keep the compiler happy.
PiperOrigin-RevId: 345106443
Diffstat (limited to 'googletest/include/gtest')
-rw-r--r-- | googletest/include/gtest/internal/gtest-port-arch.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/googletest/include/gtest/internal/gtest-port-arch.h b/googletest/include/gtest/internal/gtest-port-arch.h index d3239b25..813bf2c6 100644 --- a/googletest/include/gtest/internal/gtest-port-arch.h +++ b/googletest/include/gtest/internal/gtest-port-arch.h @@ -68,6 +68,7 @@ # define GTEST_OS_OS2 1 #elif defined __APPLE__ # define GTEST_OS_MAC 1 +# include <TargetConditionals.h> # if TARGET_OS_IPHONE # define GTEST_OS_IOS 1 # endif |