diff options
-rw-r--r-- | src/pulse/sample.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pulse/sample.h b/src/pulse/sample.h index 8f9f1733..f0b839fd 100644 --- a/src/pulse/sample.h +++ b/src/pulse/sample.h @@ -27,6 +27,7 @@ #include <inttypes.h> #include <sys/types.h> +#include <sys/param.h> #include <math.h> #include <pulse/cdecl.h> @@ -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 |