[gnu.g++.lib.bug] USG diffs for libg++ 1.35.0

jkp@SAUNA.HUT.FI (Jyrki Kuoppala) (05/29/89)

In article <8905290305.AA24347@csusac.csus.edu>, csusac!cvms!ronald@UCDAVIS writes:
>Here are some patches to make libg++ 1.35.0 compile on under System V.

and goes on with the diffs:

>!   if (rep->len > 0)
>! #if defined(i386)
>!     memset(rep->s, 0, rep->sz * sizeof(short));
>! #else
>!     bzero(rep->s, rep->sz * sizeof(short));
>! #endif

This isn't the right way to do this, as i386 isn't the same thing as
USG.  There are systems using the i386 processor which run BSD (at
least Sequent) and many many systems running USG which are not
i386-based.

I don't know what #ifdefs should be used, since there doesn't seem to
be a standard USG define.  Maybe one should just force users to
explicitly specify USG in their Makefiles and use #ifdef USG in the
g++-include files ?  That doesn't seem a very good alternative.

Anyone got any ideas ?

//Jyrki