This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 06/21/2017 11:09 AM, Joel Sherrill wrote:
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.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? CorinnaYes, 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
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |