mirror of https://github.com/mpv-player/mpv
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:
parent
8e4dcb15ce
commit
b558b99f67
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue