Commit f03cc101 authored by Max Kellermann's avatar Max Kellermann

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

parent 736a696f
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#ifndef MPD_UPNP_CALLBACK_HXX #ifndef MPD_UPNP_CALLBACK_HXX
#define MPD_UPNP_CALLBACK_HXX #define MPD_UPNP_CALLBACK_HXX
#include <upnp.h> #include "Compat.hxx"
/** /**
* A class that is supposed to be used for libupnp asynchronous * A class that is supposed to be used for libupnp asynchronous
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#ifndef MPD_UPNP_CLIENT_INIT_HXX #ifndef MPD_UPNP_CLIENT_INIT_HXX
#define MPD_UPNP_CLIENT_INIT_HXX #define MPD_UPNP_CLIENT_INIT_HXX
#include <upnp.h> #include "Compat.hxx"
UpnpClient_Handle UpnpClient_Handle
UpnpClientGlobalInit(); UpnpClientGlobalInit();
......
...@@ -20,6 +20,16 @@ ...@@ -20,6 +20,16 @@
#ifndef MPD_UPNP_COMPAT_HXX #ifndef MPD_UPNP_COMPAT_HXX
#define 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> #include <upnp.h>
#ifdef __clang__
#pragma GCC diagnostic pop
#endif
#endif #endif
...@@ -20,10 +20,9 @@ ...@@ -20,10 +20,9 @@
#ifndef _UPNPDIR_HXX_INCLUDED_ #ifndef _UPNPDIR_HXX_INCLUDED_
#define _UPNPDIR_HXX_INCLUDED_ #define _UPNPDIR_HXX_INCLUDED_
#include "Compat.hxx"
#include "util/Compiler.h" #include "util/Compiler.h"
#include <upnp.h>
#include <string> #include <string>
#include <forward_list> #include <forward_list>
......
...@@ -29,8 +29,6 @@ ...@@ -29,8 +29,6 @@
#include "thread/Mutex.hxx" #include "thread/Mutex.hxx"
#include "event/DeferEvent.hxx" #include "event/DeferEvent.hxx"
#include <upnp.h>
#include <boost/intrusive/list.hpp> #include <boost/intrusive/list.hpp>
#include <list> #include <list>
......
...@@ -18,10 +18,10 @@ ...@@ -18,10 +18,10 @@
*/ */
#include "Init.hxx" #include "Init.hxx"
#include "Compat.hxx"
#include "thread/Mutex.hxx" #include "thread/Mutex.hxx"
#include "util/RuntimeError.hxx" #include "util/RuntimeError.hxx"
#include <upnp.h>
#include <upnptools.h> #include <upnptools.h>
#include <ixml.h> #include <ixml.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment