output/sndio: refuse to build with libroarsndio
RoarAudio's sndio emulation has been a source for annoyances. First, their headers turned out to be broken with C++, due to their use of the "new" keyword. Then they used a preprocessor macro to rename "sio_hdl" to something else, effectively disallowing the use of forward declarations. Enough is enough, and I'm removing support for it. RoarAudio users should better use the RoarAudio output plugin.
This commit is contained in:
@@ -24,16 +24,8 @@
|
||||
#include "util/Domain.hxx"
|
||||
#include "Log.hxx"
|
||||
|
||||
/* work around a C++ incompatibility if the sndio API is emulated by
|
||||
libroar: libroar's "struct roar_service_stream" has a member named
|
||||
"new", which is an illegal identifier in C++ */
|
||||
#define new new_
|
||||
|
||||
#include <sndio.h>
|
||||
|
||||
/* undo the libroar workaround */
|
||||
#undef new
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
#ifndef SIO_DEVANY
|
||||
|
Reference in New Issue
Block a user