From 7c13ca02ddfdebe8262b29729b7c8a83b8a8bddf Mon Sep 17 00:00:00 2001 From: Gioacchino Mazzurco Date: Thu, 25 Apr 2019 02:00:07 +0200 Subject: [PATCH] Fix build with libupnp-1.6.25 --- libretroshare/src/rs_upnp/upnp18_retrocompat.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libretroshare/src/rs_upnp/upnp18_retrocompat.h b/libretroshare/src/rs_upnp/upnp18_retrocompat.h index 18bd8a274..26fb0a524 100644 --- a/libretroshare/src/rs_upnp/upnp18_retrocompat.h +++ b/libretroshare/src/rs_upnp/upnp18_retrocompat.h @@ -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