From b8c4edf95ba3dd9ee6577b13d9b3cc903809c492 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Tue, 1 Dec 2020 17:56:15 -0500 Subject: [PATCH] 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 --- googletest/include/gtest/internal/gtest-port-arch.h | 1 + 1 file changed, 1 insertion(+) 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 # if TARGET_OS_IPHONE # define GTEST_OS_IOS 1 # endif