diff --git a/src/pulse/sample.h b/src/pulse/sample.h index 8f9f1733d..f0b839fd4 100644 --- a/src/pulse/sample.h +++ b/src/pulse/sample.h @@ -27,6 +27,7 @@ #include #include +#include #include #include @@ -104,6 +105,14 @@ PA_C_DECL_BEGIN +#if !defined(WORDS_BIGENDIAN) +#if defined(__BYTE_ORDER) +#if __BYTE_ORDER == __BIG_ENDIAN +#define WORDS_BIGENDIAN +#endif +#endif +#endif + /** Maximum number of allowed channels */ #define PA_CHANNELS_MAX 32