lib/upnp/Compat: workaround for -Wkeyword-macro

This commit is contained in:
Max Kellermann
2020-05-27 16:48:44 +02:00
parent 736a696f98
commit f03cc1012d
6 changed files with 14 additions and 7 deletions

View File

@@ -20,6 +20,16 @@
#ifndef MPD_UPNP_COMPAT_HXX
#define MPD_UPNP_COMPAT_HXX
#ifdef __clang__
/* libupnp versions until 1.10.1 redefine "bool" and "true" */
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wkeyword-macro"
#endif
#include <upnp.h>
#ifdef __clang__
#pragma GCC diagnostic pop
#endif
#endif