Re: [PATCH] [RFC] #define __BYTE_ORDER

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Joakim Tjernlund
Date: Wednesday, March 24, 2010 - 2:45 pm

geert.uytterhoeven@gmail.com wrote on 2010/03/24 19:37:36:

Precisely, I see that i forgot to mention that in the commit msg.

It is actually worse that that, gcc will only define one of __LITTLE_ENDIAN/__BIG_ENDIAN
so you might be tricked that using just the __LITTLE_ENDIAN/__BIG_ENDIAN defines works.
Then you add some include file such as stdlib.h and it all breaks because now
both __LITTLE_ENDIAN and __BIG_ENDIAN are defined.

 Jocke

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] [RFC] #define __BYTE_ORDER, Joakim Tjernlund, (Wed Mar 17, 11:10 am)
Re: [PATCH] [RFC] #define __BYTE_ORDER, Andrew Morton, (Wed Mar 24, 11:21 am)
Re: [PATCH] [RFC] #define __BYTE_ORDER, Geert Uytterhoeven, (Wed Mar 24, 11:37 am)
Re: [PATCH] [RFC] #define __BYTE_ORDER, Andrew Morton, (Wed Mar 24, 11:51 am)
Re: [PATCH] [RFC] #define __BYTE_ORDER, David Daney, (Wed Mar 24, 11:53 am)
Re: [PATCH] [RFC] #define __BYTE_ORDER, Joakim Tjernlund, (Wed Mar 24, 2:45 pm)
Re: [PATCH] [RFC] #define __BYTE_ORDER, Joakim Tjernlund, (Wed Mar 24, 2:55 pm)