aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/RoarOutputPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-04-16 19:54:58 +0200
committerMax Kellermann <max@duempel.org>2013-04-16 20:04:11 +0200
commite02d8ad8d29ac102582a1a27bd652ec7a46dabbc (patch)
treec02d966c10abf988fb1bcb0938179913ea6d362f /src/output/RoarOutputPlugin.cxx
parentd300e6bf212f35c9a64369a4acc760a79adec013 (diff)
downloadmpd-e02d8ad8d29ac102582a1a27bd652ec7a46dabbc.tar.gz
mpd-e02d8ad8d29ac102582a1a27bd652ec7a46dabbc.tar.xz
mpd-e02d8ad8d29ac102582a1a27bd652ec7a46dabbc.zip
output/roar: work around libroar's use of "new"
Diffstat (limited to '')
-rw-r--r--src/output/RoarOutputPlugin.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/output/RoarOutputPlugin.cxx b/src/output/RoarOutputPlugin.cxx
index 9d6c45917..9de89b22f 100644
--- a/src/output/RoarOutputPlugin.cxx
+++ b/src/output/RoarOutputPlugin.cxx
@@ -26,7 +26,11 @@
#include <glib.h>
+/* libroar/services.h declares roar_service_stream::new - work around
+ this C++ problem */
+#define new _new
#include <roaraudio.h>
+#undef new
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "roaraudio"