lib/upnp/Compat: workaround for -Wkeyword-macro
This commit is contained in:
parent
736a696f98
commit
f03cc1012d
@ -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 @@
|
|||||||
#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 @@
|
|||||||
#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 @@
|
|||||||
#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 @@
|
|||||||
#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 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#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>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user