[enigma2-plugin-extensions-openwebif] use fixed SRCREV.
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-core / dbus / dbus-1.4.16 / compile-under-c++11.patch
1 From a942d1543f4d87db821c5836986129dea79a173d Mon Sep 17 00:00:00 2001
2 From: Marc Mutz <marc.mutz@kdab.com>
3 Date: Thu, 16 Feb 2012 08:43:40 +0100
4 Subject: [PATCH] dbus-protocol.h: compile under C++11
5
6 C++11 compilers have a feature called 'user-defined string literals' which
7 allow arbitrary string suffixes to have user-defined meaning.
8
9 This makes code that concatenates macros with string literals without
10 intervening whitespace illegal under C++11. Fortunately, string literal
11 concatenation has allowed intervening whitespace since the dawn of time,
12 so the solution is to simply pad with spaces.
13
14 Tested (header) with GCC 4.7 (trunk).
15 ---
16  dbus/dbus-protocol.h |    2 +-
17  1 files changed, 1 insertions(+), 1 deletions(-)
18
19 diff --git a/dbus/dbus-protocol.h b/dbus/dbus-protocol.h
20 index 8aa15e5..60605ab 100644
21 --- a/dbus/dbus-protocol.h
22 +++ b/dbus/dbus-protocol.h
23 @@ -456,7 +456,7 @@ extern "C" {
24  /** XML system identifier of the introspection format version 1.0 */
25  #define DBUS_INTROSPECT_1_0_XML_SYSTEM_IDENTIFIER "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"
26  /** XML document type declaration of the introspection format version 1.0 */
27 -#define DBUS_INTROSPECT_1_0_XML_DOCTYPE_DECL_NODE "<!DOCTYPE node PUBLIC \""DBUS_INTROSPECT_1_0_XML_PUBLIC_IDENTIFIER"\"\n\""DBUS_INTROSPECT_1_0_XML_SYSTEM_IDENTIFIER"\">\n"
28 +#define DBUS_INTROSPECT_1_0_XML_DOCTYPE_DECL_NODE "<!DOCTYPE node PUBLIC \"" DBUS_INTROSPECT_1_0_XML_PUBLIC_IDENTIFIER "\"\n\"" DBUS_INTROSPECT_1_0_XML_SYSTEM_IDENTIFIER "\">\n"
29  
30  /** @} */
31  
32 -- 
33 1.7.2.3
34