On Sun 19 Jul 2015 at 09:03:20 -0000, nore...@launchpad.net wrote:
>   Make use of glibc's features.h to properly set defines we need, since
>   -std=c99 make it stricter.
> modified:

Yes I find that terribly annoying. Conflating language features and
library features is less than optimal I think. There ought to be
separate options for that. (I think the same problem exists when you -D
one of those POSIX defines, but it was a while ago that I tried and I
never tried it since.)

NetBSD's libc is much more sensible in this. -std=c99 enables the
language features of C99 but doesn't disable the POSIX and NetBSD (etc)
functions. Why one would want to disable POSIX when compiling something
on a POSIX system I don't know. As far as I'm aware they are not
forbidden by the C standard, merely extensions.

A workaround is to use -std=gnu99, but that also enables the GNU
extensions to the language.

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- The Doctor: No, 'eureka' is Greek for
\X/ rhialto/at/xs4all.nl    -- 'this bath is too hot.'

Attachment: pgpXyMQHN9UOl.pgp
Description: PGP signature

Reply via email to