[Speex-dev] [patch] Mac Universal Binaries

Erik de Castro Lopo
2007-05-03T18:05:37Z

> Can others comment on the availability of the compiler defined
> __BIG_ENDIAN__ and __LITTLE_ENDIAN__ variables?

I should also reply to this. The problem with these macros is that
they are not part of any C standard; not 1999 ISO C nor any of the
POSIX standards.

In fact, these two macros are not even available on Linux/gcc
*unless* you include <endian.h>.

On MacOSX these macros are defined inside the compiler itself.

Erik
--
-----------------------------------------------------------------
Erik de Castro Lopo
-----------------------------------------------------------------
"Hundreds of thousands of people couldn't care less about Kylix
and what it runs on.  It's there for the dying breed of die-hard
Pascal fanatics who missed their 20 year window to migrate to C
and C++."  -- Kaz Kylheku in comp.os.linux.development.apps