On 2011-02-23, Ben Bacarisse <> wrote:
> Seebs <usenet-> writes:
>> I think I'm using some gcc-specific stuff, in fact, I'm actively selecting
>> some GNU extensions from glibc. So I actually run with -std=gnu99.
> But that changes the language as well as the library.
Yes.
> Is it not
> possible to use std=c99 and turn on the library extensions with macros?
> Maybe what you need is not exactly obtainable but that route, but it
> often is.
It might be, but it turns out to be a lot harder for me to get the right
subsets tweaking it by hand.
> In terms of the library, no, but a great many more could be made
> portable (between compilers) by relying only on library extensions
> rather than language ones.
Portability between compilers, given the library extensions, is functionally
a non-issue. I've never heard of anyone actually using glibc with something
other than gcc, but I know lots of people using gcc with things other than
glibc.
I guess... Much though I love standard code, I think it makes a lot of
sense for implementations not to default to a conforming mode on most targets,
because that's almost never a mode in which complete real projects will
compile. Not never, but rarely enough to make it a poor default.
-s
--
Copyright 2010, all wrongs reversed. Peter Seebach /
usenet-
http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures
http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!
I am not speaking for my employer, although they do rent some of my opinions.