mirror of
https://github.com/electron/electron.git
synced 2026-01-28 00:38:35 -05:00
Fix build on other platforms
This commit is contained in:
@@ -51,6 +51,7 @@ namespace atom {
|
||||
|
||||
namespace api {
|
||||
|
||||
#if defined(OS_MACOSX)
|
||||
// static
|
||||
mate::Handle<InAppPurchase> InAppPurchase::Create(v8::Isolate* isolate) {
|
||||
return mate::CreateHandle(isolate, new InAppPurchase(isolate));
|
||||
@@ -86,6 +87,7 @@ void InAppPurchase::OnTransactionsUpdated(
|
||||
const std::vector<in_app_purchase::Transaction>& transactions) {
|
||||
Emit("transactions-updated", transactions);
|
||||
}
|
||||
#endif
|
||||
|
||||
} // namespace api
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ using InAppTransactionCallback =
|
||||
*
|
||||
* @param transaction - The transaction to pass to the callback.
|
||||
*/
|
||||
- (void)runCallback:(NSArray<SKPaymentTransaction*>*)transactions {
|
||||
- (void)runCallback:(NSArray*)transactions {
|
||||
// Convert the transaction.
|
||||
std::vector<in_app_purchase::Transaction> converted;
|
||||
converted.reserve([transactions count]);
|
||||
|
||||
Reference in New Issue
Block a user