-std=c90 -pedantic-errors and <stdint.h>

Florian Weimer fw@deneb.enyo.de
Tue May 30 21:04:00 GMT 2017


* Vincent Lefevre:

> Is it normal that -std=c90 -pedantic-errors allows to use
>
> #include <stdint.h>
>
> ?

Yes.  It's difficult where to draw the line.  <inttypes.h> was
apparently available with some C90 compilers, so it would make sense
to allow it in C90 mode.  But this means that it wouldn't be
completely out of line to accept <stdint.h>, too.



More information about the Gcc-help mailing list