aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatthew Gregan <[email protected]>2012-08-06 15:09:19 +1200
committerMatthew Gregan <[email protected]>2012-08-06 15:09:19 +1200
commit697b5c1279bf723d93b9d5f08e1fec6a6382bb77 (patch)
tree2aa74a9a5cc5ef1c15217f2f8179aad38f2e35f3
parentbea7b0ac335f01352e4ccb4caa5f8984cb78c1fb (diff)
downloadcubeb-697b5c1279bf723d93b9d5f08e1fec6a6382bb77.tar.gz
cubeb-697b5c1279bf723d93b9d5f08e1fec6a6382bb77.zip
Check for __BIG_ENDIAN__ when testing endianess.
Thanks to Tobias Netzel for the patch.
-rw-r--r--include/cubeb/cubeb.h2
1 files changed, 1 insertions, 1 deletions
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. */