This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Where's std.h?



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.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]