Attempt to fix the Catalina build after r262069.
authoraestes@apple.com <aestes@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 May 2020 20:52:28 +0000 (20:52 +0000)
committeraestes@apple.com <aestes@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 May 2020 20:52:28 +0000 (20:52 +0000)
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@262072 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/Modules/applepay/PaymentInstallmentConfiguration.mm

index c679b5c..58051bf 100644 (file)
@@ -80,6 +80,8 @@ static PKPaymentSetupFeatureType platformFeatureType(ApplePaySetupFeatureType fe
     }
 }
 
+#if HAVE(PASSKIT_INSTALLMENT_ITEMS)
+
 static ApplePayInstallmentItemType applePayItemType(PKInstallmentItemType itemType)
 {
     switch (itemType) {
@@ -168,6 +170,8 @@ static Optional<ApplePayInstallmentItem> makeVectorElement(const ApplePayInstall
     };
 }
 
+#endif // HAVE(PASSKIT_INSTALLMENT_ITEMS)
+
 static RetainPtr<PKPaymentInstallmentConfiguration> createPlatformConfiguration(const ApplePayInstallmentConfiguration& coreConfiguration, NSDictionary *applicationMetadata)
 {
     auto configuration = adoptNS([PAL::allocPKPaymentInstallmentConfigurationInstance() init]);