Fix build with libupnp-1.6.25

This commit is contained in:
Gioacchino Mazzurco 2019-04-25 02:00:07 +02:00
parent 05116b8311
commit 7c13ca02dd
No known key found for this signature in database
GPG Key ID: A1FBCA3872E87051

View File

@ -30,6 +30,9 @@ using UpnpEventSubscribe = Upnp_Event_Subscribe;
using UpnpActionComplete = Upnp_Action_Complete;
using UpnpStateVarComplete = Upnp_State_Var_Complete;
static inline const char* UpnpStateVarComplete_get_CurrentVal_cstr(
const UpnpStateVarComplete* esvc) noexcept { return esvc->CurrentVal; }
#endif // UPNP_VERSION < 10800
#if UPNP_VERSION < 10624
@ -76,7 +79,4 @@ static inline int UpnpStateVarComplete_get_ErrCode(
static inline const char* UpnpStateVarComplete_get_StateVarName_cstr(
const UpnpStateVarComplete* esvc) noexcept { return esvc->StateVarName; }
static inline const char* UpnpStateVarComplete_get_CurrentVal_cstr(
const UpnpStateVarComplete* esvc) noexcept { return esvc->CurrentVal; }
#endif // UPNP_VERSION < 10624