diff --git a/admob/src/include/firebase/admob/types.h b/admob/src/include/firebase/admob/types.h index af2911e0fe..9387b51781 100644 --- a/admob/src/include/firebase/admob/types.h +++ b/admob/src/include/firebase/admob/types.h @@ -23,7 +23,7 @@ #if defined(__ANDROID__) #include -#elif defined(TARGET_OS_IPHONE) +#elif (TARGET_OS_IPHONE==1) extern "C" { #include } // extern "C" @@ -42,7 +42,7 @@ namespace admob { #if defined(__ANDROID__) /// An Android Activity from Java. typedef jobject AdParent; -#elif defined(TARGET_OS_IPHONE) +#elif (TARGET_OS_IPHONE==1) /// A pointer to an iOS UIView. typedef id AdParent; #else