use __BYTE_ORDER macro for detecting byte order, as suggested on http://unixpapa.com/incnote/byteorder.html

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2098 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2008-01-06 20:38:11 +00:00
parent c5678ae400
commit d36a1b8333

View file

@ -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