From: Junio C Hamano <gitster@pobox.com>
To: "David M. Syzdek" <david.syzdek@acsalaska.net>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Add support for uintmax_t type on FreeBSD 4.9
Date: Sun, 26 Oct 2008 22:30:17 -0700 [thread overview]
Message-ID: <7vy70aip06.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: 1225021957-11880-1-git-send-email-david.syzdek@acsalaska.net
"David M. Syzdek" <david.syzdek@acsalaska.net> writes:
> This adds NO_UINTMAX_T for ancient systems. If NO_UINTMAX_T is defined, then
> uintmax_t is defined as uint32_t. This adds a test to configure.ac for
> uintmax_t and adds a check to the Makefile for FreeBSD 4.9-SECURITY.
> ...
> diff --git a/Makefile b/Makefile
> index 0d40f0e..bf6a6dc 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -931,6 +931,9 @@ endif
> ifdef NO_IPV6
> BASIC_CFLAGS += -DNO_IPV6
> endif
> +ifdef NO_UINTMAX_T
> + BASIC_CFLAGS += -Duintmax_t=uint32_t
> +endif
I have a stupid question.
Would it be a more appropriate improvement to do it like this:
ifdef USE_THIS_AS_UINTMAX_T
BASIC_CFLAGS += -Duintmax_t="$(USE_THIS_AS_UINTMAX_T)"
endif
and then add a section for FreeBSD 4.9-SECURITY like this:
ifeq ($(uname_R),4.9-SECURITY)
USE_THIS_AS_UINTMAX_T = uint32_t
endif
That way, an oddball 64-bit machine can use uint64_t here if it wants to,
possibly including FreeBSD 4.9-SECURITY backported to 64-bit ;-).
next prev parent reply other threads:[~2008-10-27 5:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-26 11:52 [PATCH] Add support for uintmax_t type on FreeBSD 4.9 David M. Syzdek
2008-10-27 5:30 ` Junio C Hamano [this message]
[not found] ` <9a0027270810262239r311074m51d382bdd95fd0dc@mail.gmail.com>
2008-10-27 5:46 ` David Syzdek
2008-10-27 6:17 ` Junio C Hamano
2008-10-27 13:23 ` David Syzdek
2008-10-28 4:14 ` Junio C Hamano
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=7vy70aip06.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=david.syzdek@acsalaska.net \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.