Jelajahi Sumber

Fix macro in GIDGoogleUser.m (#259)

pinlu 3 tahun lalu
induk
melakukan
dbe49dc1bb
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      GoogleSignIn/Sources/GIDGoogleUser.m

+ 3 - 3
GoogleSignIn/Sources/GIDGoogleUser.m

@@ -184,11 +184,11 @@ static NSTimeInterval const kMinimalTimeToExpire = 60.0;
 }
 
 - (void)addScopes:(NSArray<NSString *> *)scopes
-#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST
+#if TARGET_OS_IOS || TARGET_OS_MACCATALYST
     presentingViewController:(UIViewController *)presentingViewController
-#elif TARGET_OS_OSX || TARGET_OS_MACCATALYST
+#elif TARGET_OS_OSX
             presentingWindow:(NSWindow *)presentingWindow
-#endif // TARGET_OS_IOS && !TARGET_OS_MACCATALYST
+#endif // TARGET_OS_IOS || TARGET_OS_MACCATALYST
                   completion:(nullable void (^)(GIDUserAuth *_Nullable userAuth,
                                                 NSError *_Nullable error))completion {
   if (self != GIDSignIn.sharedInstance.currentUser) {