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
This commit is contained in:
parent
d737069111
commit
b8c4edf95b
@ -68,6 +68,7 @@
|
|||||||
# define GTEST_OS_OS2 1
|
# define GTEST_OS_OS2 1
|
||||||
#elif defined __APPLE__
|
#elif defined __APPLE__
|
||||||
# define GTEST_OS_MAC 1
|
# define GTEST_OS_MAC 1
|
||||||
|
# include <TargetConditionals.h>
|
||||||
# if TARGET_OS_IPHONE
|
# if TARGET_OS_IPHONE
|
||||||
# define GTEST_OS_IOS 1
|
# define GTEST_OS_IOS 1
|
||||||
# endif
|
# endif
|
||||||
|
Loading…
Reference in New Issue
Block a user