fix warning: 'OS_STRING' macro redefined [-Wmacro-redefined]

Even though this is in ext, these particular chunks of code were added
by us, so are ok to modify.
This commit is contained in:
Brenton Bostick 2023-06-02 15:16:24 -04:00
parent 5a36b315a3
commit 8287459a2c
2 changed files with 4 additions and 0 deletions

View file

@ -21,12 +21,14 @@
#include "minisoap.h"
#ifdef _WIN32
#undef OS_STRING
#define OS_STRING "Win32"
#define MINIUPNPC_VERSION_STRING "2.0"
#define UPNP_VERSION_STRING "UPnP/1.1"
#endif
#ifdef __ANDROID__
#undef OS_STRING
#define OS_STRING "Android"
#define MINIUPNPC_VERSION_STRING "2.0"
#define UPNP_VERSION_STRING "UPnP/1.1"

View file

@ -49,12 +49,14 @@
#endif /* MIN */
#ifdef _WIN32
#undef OS_STRING
#define OS_STRING "Win32"
#define MINIUPNPC_VERSION_STRING "2.0"
#define UPNP_VERSION_STRING "UPnP/1.1"
#endif
#ifdef __ANDROID__
#undef OS_STRING
#define OS_STRING "Android"
#define MINIUPNPC_VERSION_STRING "2.0"
#define UPNP_VERSION_STRING "UPnP/1.1"