mirror of
https://github.com/google/googletest.git
synced 2026-06-27 04:48:51 +08:00
Resolve warning about undefined TARGET_OS_IPHONE
Check that TARGET_OS_IPHONE is defined before checking its value to determine iOS support.
This commit is contained in:
parent
9156d4caac
commit
bef2a5834c
@ -71,7 +71,7 @@
|
||||
#elif defined __APPLE__
|
||||
#define GTEST_OS_MAC 1
|
||||
#include <TargetConditionals.h>
|
||||
#if TARGET_OS_IPHONE
|
||||
#if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
|
||||
#define GTEST_OS_IOS 1
|
||||
#endif
|
||||
#elif defined __DragonFly__
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user