diff options
Diffstat (limited to 'examples/demos/hangman/purchasing/inapp/inappstore.cpp')
-rw-r--r-- | examples/demos/hangman/purchasing/inapp/inappstore.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/demos/hangman/purchasing/inapp/inappstore.cpp b/examples/demos/hangman/purchasing/inapp/inappstore.cpp index acce855c6..698ec0ea3 100644 --- a/examples/demos/hangman/purchasing/inapp/inappstore.cpp +++ b/examples/demos/hangman/purchasing/inapp/inappstore.cpp @@ -35,12 +35,13 @@ InAppStore::~InAppStore() void InAppStore::setupBackend() { - #ifdef Q_OS_ANDROID +#if defined Q_OS_ANDROID d->backend = new AndroidInAppPurchaseBackend; - #endif - #ifdef Q_OS_IOS +#elif defined Q_OS_IOS d->backend = new IosInAppPurchaseBackend; - #endif +#else + return; +#endif d->backend->setStore(this); connect(d->backend, &InAppPurchaseBackend::ready, |