1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 00:42:57 +00:00

ao_pipewire: fix access to undefined byte order definitions

spa/param/audio/raw.h on FreeBSD accesses those, so defined them.
Probably should be fixed upstream, but to suppress warnings lets do it
locally.
This commit is contained in:
Kacper Michajłow 2024-06-04 22:55:09 +02:00
parent 8e4dcb15ce
commit b558b99f67

View File

@ -20,6 +20,14 @@
* License along with mpv. If not, see <http://www.gnu.org/licenses/>.
*/
// For FreeBSD where spa/param/audio/raw.h expects those to be defined
#include "osdep/endian.h"
#ifndef __BYTE_ORDER
#define __BYTE_ORDER BYTE_ORDER
#define __LITTLE_ENDIAN LITTLE_ENDIAN
#define __BIG_ENDIAN BIG_ENDIAN
#endif
#include <pipewire/pipewire.h>
#include <pipewire/global.h>
#include <spa/param/audio/format-utils.h>