Mail Archives: djgpp-workers/2004/01/11/07:56:54
Hello.
CBFalconer wrote:
[snip]
> We may be approaching this from different viewpoints. Mine is that
> code should adhere to ISO standards, and that special efforts are
> needed to deviate from that. I consider GNU standards to be such
> a deviation, and so run gcc with -ansi -pedantic by default.
What is the default mode of the compiler?
If you use -ansi or -std=c89 or -std=c99, you'll import into the
namespace only what's appropriate for that version of the ANSI standard.
(If you get more, then there's a bug in libc.)
I really don't understand what the problem is here. The code that Esa
Peuha posted will do what you want.
Bye, Rich =]
--
Richard Dawe [ http://homepages.nildram.co.uk/~phekda/richdawe/ ]
"You can't evaluate a man by logic alone."
-- McCoy, "I, Mudd", Star Trek
- Raw text -