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:
Darryl Pogue 2025-12-31 19:07:12 -08:00 committed by GitHub
parent 9156d4caac
commit bef2a5834c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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__