1
0
Fork 0
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:
hogliux 2017-08-18 09:17:16 +01:00
parent 75c299025a
commit b2ae412e26
3 changed files with 4 additions and 4 deletions

View file

@ -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
//==============================================================================

View file

@ -259,7 +259,7 @@ private:
ListenerList<Listener> listeners;
#if JUCE_ANDROID
friend void juce_inAppPurchaseCompleted (jobject);
friend void juce_inAppPurchaseCompleted (void*);
#endif
struct Pimpl;

View file

@ -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));
}