diff --git a/atom/browser/api/atom_api_in_app_purchase.cc b/atom/browser/api/atom_api_in_app_purchase.cc index aa6a89eeff70..4f507fb86e41 100644 --- a/atom/browser/api/atom_api_in_app_purchase.cc +++ b/atom/browser/api/atom_api_in_app_purchase.cc @@ -51,6 +51,7 @@ namespace atom { namespace api { +#if defined(OS_MACOSX) // static mate::Handle InAppPurchase::Create(v8::Isolate* isolate) { return mate::CreateHandle(isolate, new InAppPurchase(isolate)); @@ -86,6 +87,7 @@ void InAppPurchase::OnTransactionsUpdated( const std::vector& transactions) { Emit("transactions-updated", transactions); } +#endif } // namespace api diff --git a/atom/browser/mac/in_app_purchase_observer.mm b/atom/browser/mac/in_app_purchase_observer.mm index 47e35e22e734..ef21228ad6e1 100644 --- a/atom/browser/mac/in_app_purchase_observer.mm +++ b/atom/browser/mac/in_app_purchase_observer.mm @@ -63,7 +63,7 @@ using InAppTransactionCallback = * * @param transaction - The transaction to pass to the callback. */ -- (void)runCallback:(NSArray*)transactions { +- (void)runCallback:(NSArray*)transactions { // Convert the transaction. std::vector converted; converted.reserve([transactions count]);