[pulseaudio-discuss] [PATCH] sample: Apply SPARC-specific condition on SPARC only

Thomas Martitz kugel at rockbox.org
Fri Aug 2 00:02:00 PDT 2013


Am 31.07.2013 15:29, schrieb Peter Meerwald:
>> It looks like some headers define both _BIG_ENDIAN and _LITTLE_ENDIAN
>> (perhaps one is defined as "1" and the other as "0"?), so maybe a
>>
>> #if defined(_BIG_ENDIAN) && !defined(_LITTLE_ENDIAN)
> boost (boost/detail/endian.hpp) does it like this
>
> p.
>

My system (debian jessy) defines both in endian.h (except it has two 
underscores), and __BYTE_ORDER is defined to the appropriate value. So 
the check on my system would be

#if __BYTE_ORDER == __BIG_ENDIAN
...
#endif


More information about the pulseaudio-discuss mailing list