Skip to content

Commit

Permalink
Update TARGET_OS_MACCATALYST preprocessor comments
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamDenniss committed Nov 21, 2019
1 parent 7b6c272 commit 8524261
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Source/iOS/OIDAuthState+IOS.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ @implementation OIDAuthState (IOS)
#if TARGET_OS_MACCATALYST
externalUserAgent = [[OIDExternalUserAgentCatalyst alloc]
initWithPresentingViewController:presentingViewController];
#else
#else // TARGET_OS_MACCATALYST
externalUserAgent = [[OIDExternalUserAgentIOS alloc] initWithPresentingViewController:presentingViewController];
#endif
#endif // TARGET_OS_MACCATALYST
return [self authStateByPresentingAuthorizationRequest:authorizationRequest
externalUserAgent:externalUserAgent
callback:callback];
Expand All @@ -47,6 +47,6 @@ @implementation OIDAuthState (IOS)
externalUserAgent:externalUserAgent
callback:callback];
}
#endif
#endif // !TARGET_OS_MACCATALYST

@end
4 changes: 2 additions & 2 deletions Source/iOS/OIDAuthorizationService+IOS.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ @implementation OIDAuthorizationService (IOS)
#if TARGET_OS_MACCATALYST
externalUserAgent = [[OIDExternalUserAgentCatalyst alloc]
initWithPresentingViewController:presentingViewController];
#else
#else // TARGET_OS_MACCATALYST
externalUserAgent = [[OIDExternalUserAgentIOS alloc] initWithPresentingViewController:presentingViewController];
#endif
#endif // TARGET_OS_MACCATALYST
return [self presentAuthorizationRequest:request externalUserAgent:externalUserAgent callback:callback];
}

Expand Down

0 comments on commit 8524261

Please sign in to comment.