[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: glibc-2.3.1 defines BIG_ENDIAN: naming conflict
From: |
Andreas Jaeger |
Subject: |
Re: glibc-2.3.1 defines BIG_ENDIAN: naming conflict |
Date: |
Wed, 23 Oct 2002 17:15:01 +0200 |
User-agent: |
Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Artificial Intelligence, i386-suse-linux) |
Jan Nieuwenhuizen <address@hidden> writes:
> Niels Ferguson, a friend of mine, received bug reports from GNU/Linux
> users for his portable twofish library
> (http://niels.ferguson.net/code/TwofishClib.html) and asked me to look
> into it.
>
> It turned out that glibc (2.3.1) defines the macro BIG_ENDIAN when
> string.h or memory.h is included, and gcc optimization is switched on.
>
> The C99 draft standards do not seem to allow this.
If you want to conform to C99, specify gcc -std=c99 and in this case
the variable is not defined.
Andreas
--
Andreas Jaeger
SuSE Labs address@hidden
private address@hidden
http://www.suse.de/~aj