PipeWire 1.4 includes math.h inside an extern "C" block, which breaks including the header from C++. This is because we end up including throw_gcc.h from memory/mozalloc, but we won't have _LIBCPP_VERSION defined. Workaround for this issue is not to include <pipewire/conf.h> from the main <pipewire/pipewire.h> header, as this leads to inclusion of <spa/json-core.h> where the math.h header is used. We don't currently need this in Firefox anyway. Differential Revision: https://phabricator.services.mozilla.com/D244888
13 lines
349 B
Diff
13 lines
349 B
Diff
diff --git a/pipewire/pipewire.h b/pipewire/pipewire.h
|
|
index 0c495ed..870f2f1 100644
|
|
--- a/pipewire/pipewire.h
|
|
+++ b/pipewire/pipewire.h
|
|
@@ -13,7 +13,6 @@ extern "C" {
|
|
|
|
#include <pipewire/array.h>
|
|
#include <pipewire/client.h>
|
|
-#include <pipewire/conf.h>
|
|
#include <pipewire/context.h>
|
|
#include <pipewire/device.h>
|
|
#include <pipewire/buffers.h>
|