mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Android: Replaced jni type in JUCE header with generic void* to avoid compilation errors if the user does not include jni.h
This commit is contained in:
parent
75c299025a
commit
b2ae412e26
3 changed files with 4 additions and 4 deletions
|
|
@ -33,7 +33,7 @@ namespace juce
|
|||
|
||||
//==============================================================================
|
||||
#if JUCE_MODULE_AVAILABLE_juce_product_unlocking
|
||||
extern void juce_inAppPurchaseCompleted (jobject intentData);
|
||||
extern void juce_inAppPurchaseCompleted (void*);
|
||||
#endif
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
|
|
@ -259,7 +259,7 @@ private:
|
|||
ListenerList<Listener> listeners;
|
||||
|
||||
#if JUCE_ANDROID
|
||||
friend void juce_inAppPurchaseCompleted (jobject);
|
||||
friend void juce_inAppPurchaseCompleted (void*);
|
||||
#endif
|
||||
|
||||
struct Pimpl;
|
||||
|
|
|
|||
|
|
@ -927,7 +927,7 @@ struct InAppPurchases::Pimpl : private AsyncUpdater,
|
|||
|
||||
|
||||
//==============================================================================
|
||||
void juce_inAppPurchaseCompleted (jobject intentData)
|
||||
void juce_inAppPurchaseCompleted (void* intentData)
|
||||
{
|
||||
InAppPurchases::Pimpl::inAppPurchaseCompleted (intentData);
|
||||
InAppPurchases::Pimpl::inAppPurchaseCompleted (static_cast<jobject> (intentData));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue