This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Where's std.h?
- To: neal at ctd dot comsat dot com (Neal Becker)
- Subject: Re: Where's std.h?
- From: Joe Buck <jbuck at synopsys dot com>
- Date: Sat, 15 Nov 97 17:55:47 PST
- Cc: jbuck at synopsys dot com, egcs at cygnus dot com
Joe> No, std.h is not standard, it is a libg++'ism. (I was responsible for
Joe> putting that into Ptolemy years ago, but you probably want to replace
Joe> uses of std.h with the appropriate standard headers, such as <stdlib.h>
Joe> and <string.h>).
>
>
> Thanks. I just wish I could find something to test to determine what
> is the libstdc++ version so I could make the changes conditional.
> Any ideas?
In principle, you can make the changes unconditional. All std.h does
is include other headers; just include the ones you need instead. This
will not break the code when you use older g++ ports. As I said, it
should have been done that way originally.