From: Junio C Hamano <gitster@pobox.com>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] sha1dc: safeguard against outside definitions of BIGENDIAN
Date: Mon, 27 Mar 2017 10:05:49 -0700 [thread overview]
Message-ID: <xmqq37dy3b0y.fsf@gitster.mtv.corp.google.com> (raw)
In-Reply-To: <alpine.DEB.2.20.1703271739210.14958@virtualbox> (Johannes Schindelin's message of "Mon, 27 Mar 2017 17:39:43 +0200 (CEST)")
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
>> So here is what I came up with as a replacement (this time as a
>> proper patch not a comment on a patch).
>>
>> Dscho, could you see if this fixes your build?
>
> The Continuous Testing is back to normal, thanks.
Thanks for a quick response.
I wished if we can reuse the endianness detection we already have in
"compat/bswap.h", which is included by git-compat-util.h hence also
here. It would have been very nice if we could say
#if GIT_BYTE_ORDER == GIT_BIG_ENDIAN
... do big endian thing ...
#else
... do little endian thing ...
#endif
when necessary, without having to reinvent the cheks on __BYTE_ORDER
and friends. It however needs a bit of rework in "compat/bswap.h",
which is way beyond the scope of making a quick fix-up to unblock us.
prev parent reply other threads:[~2017-03-27 17:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-24 22:52 [PATCH] sha1dc: safeguard against outside definitions of BIGENDIAN Johannes Schindelin
2017-03-25 6:03 ` Junio C Hamano
2017-03-25 17:22 ` Junio C Hamano
2017-03-27 15:39 ` Johannes Schindelin
2017-03-27 17:05 ` Junio C Hamano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqq37dy3b0y.fsf@gitster.mtv.corp.google.com \
--to=gitster@pobox.com \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox