From 697b5c1279bf723d93b9d5f08e1fec6a6382bb77 Mon Sep 17 00:00:00 2001 From: Matthew Gregan Date: Mon, 6 Aug 2012 15:09:19 +1200 Subject: Check for __BIG_ENDIAN__ when testing endianess. Thanks to Tobias Netzel for the patch. --- include/cubeb/cubeb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cubeb/cubeb.h b/include/cubeb/cubeb.h index 32e0b4d..e50e9e5 100644 --- a/include/cubeb/cubeb.h +++ b/include/cubeb/cubeb.h @@ -88,7 +88,7 @@ typedef enum { CUBEB_SAMPLE_FLOAT32LE, /**< Big endian 32-bit IEEE floating point PCM. */ CUBEB_SAMPLE_FLOAT32BE, -#ifdef WORDS_BIGENDIAN +#if defined(WORDS_BIGENDIAN) || defined(__BIG_ENDIAN__) /**< Native endian 16-bit signed PCM. */ CUBEB_SAMPLE_S16NE = CUBEB_SAMPLE_S16BE, /**< Native endian 32-bit IEEE floating point PCM. */ -- cgit v1.2.3