public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
From: Craig Howland <howland@LGSInnovations.com>
To: <newlib@sourceware.org>
Subject: Re: Importing cacoshl.c and its dependent methos,
Date: Wed, 21 Jun 2017 15:18:00 -0000	[thread overview]
Message-ID: <9802b69e-a379-f17c-4c1d-2dd309d165b2@LGSInnovations.com> (raw)
In-Reply-To: <356dfbd5-08e0-e8e9-6c7e-b9bb8c2b0cef@oarcorp.com>

On 06/21/2017 11:09 AM, Joel Sherrill wrote:
>
>
> On 6/21/2017 10:02 AM, Craig Howland wrote:
>> Wait.  Isn't stdbool.h available in gcc for ages?  When building newlib,
>>>> shouldn't we be able to rely on c99 being available?
>>>>
>>>>
>>>> Corinna
>>>>
>> Yes, we can, and should.  That's because complex.h and stdbool.h were added in
>> C99, making C99 required for these functions.  I did a quick check on some older
>> cross-compiler installs that I have, and GCC 4.1.1 has stdbool.h (and 4.6.4 has
>> complex.h).
>
> Just to clarify, I did a test and added include <stdbool.h> to printf.c.
> It worked and picked up the gcc version. Can we rely on this being present
> or does newlib need to have its own?
>
> I want to make sure the direction is quite clear. :)
>
> --joel
We can rely on it being present in GCC.  (stdbool.h is required in all 
implementations, unlike some headers which are only required in hosted 
implementations.)  I just checked and 4.1.1 is from about May 2006, so it's been 
present at least 11 years.

  reply	other threads:[~2017-06-21 15:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-21  2:25 aditya upadhyay
2017-06-21  6:46 ` Sebastian Huber
2017-06-21  8:28   ` Corinna Vinschen
2017-06-21 12:05     ` aditya upadhyay
2017-06-21 15:02       ` Craig Howland
2017-06-21 15:09         ` Joel Sherrill
2017-06-21 15:18           ` Craig Howland [this message]
2017-06-26  6:05         ` Sebastian Huber

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=9802b69e-a379-f17c-4c1d-2dd309d165b2@LGSInnovations.com \
    --to=howland@lgsinnovations.com \
    --cc=newlib@sourceware.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).