Re: [PATCH] Detect endianness on more platforms that don't use BYTE_ORDER
- From
Charles Bailey <cbailey32@bloomberg.net>
- Date
- May 2, 2014, 16:58 UTC
- Message-ID
- <20140502165830.GA29339@hashpling.org>
- In-Reply-To
- <xmqqwqe4azyd.fsf@gitster.dls.corp.google.com>
On Fri, May 02, 2014 at 09:48:58AM -0700, Junio C Hamano wrote:
Show 5 quoted lines
> Charles Bailey <cbailey32@bloomberg.net> writes: > > > --- > > Please sign-off your patches ;-)
Oops! Please consider this patch...
Signed-off-by: Charles Bailey <cbailey32@bloomberg.net>
> This swaps the precedence of BYTE_ORDER and __BYTE_ORDER from the > original, which we may not want to. It is easy for me to swap the > order of if/elif to restore it, so it is not a big deal, though.
I think I swapped the precedence (semi-deliberately) because I found a proposal to standardize the BYTE_ORDER variant. I claim that any platform which provides both but with differing senses is somewhat broken so I cannot see the precedence mattering much. I don't mind either way.
Charles.