Do not try to include endian.h on FreeBSD.

This commit is contained in:
Gleb Popov 2019-11-09 23:29:58 +04:00 committed by Wim Taymans
parent fd937fa378
commit aec64336fe
2 changed files with 4 additions and 0 deletions

View file

@ -29,7 +29,9 @@
extern "C" { extern "C" {
#endif #endif
#ifndef __FreeBSD__
#include <endian.h> #include <endian.h>
#endif
#define SPA_AUDIO_LAYOUT_Mono 1, SPA_AUDIO_CHANNEL_MONO #define SPA_AUDIO_LAYOUT_Mono 1, SPA_AUDIO_CHANNEL_MONO
#define SPA_AUDIO_LAYOUT_Stereo 2, SPA_AUDIO_CHANNEL_FL, SPA_AUDIO_CHANNEL_FR #define SPA_AUDIO_LAYOUT_Stereo 2, SPA_AUDIO_CHANNEL_FL, SPA_AUDIO_CHANNEL_FR

View file

@ -29,7 +29,9 @@
extern "C" { extern "C" {
#endif #endif
#ifndef __FreeBSD__
#include <endian.h> #include <endian.h>
#endif
#define SPA_AUDIO_MAX_CHANNELS 64u #define SPA_AUDIO_MAX_CHANNELS 64u