Hi Tim, > > OK. And what about __UNIXWARE__ and __OPENSERVER__ that I see being used > > [1]? > > On which versions are they defined? > > For the most part __UNIXWARE__ and __OPENSERVER__ were used by some in > build driver scripts. Usually like CFLAGS="-O -D__UNIXWARE__"
Since you say "by some", this makes them unreliable witnesses. > Here is how it looks on current shipping products. > > > | OpenServer 5 | OpenServer 6 | UnixWare 7 | > > | | | | > > | native | gcc | native | gcc | native | gcc | > > | | | | | | | > > ----------------+---------+--------+---------+-------+---------+-------+ > > _SCO_DS | 1 | 1 | | | | | > > | | | | | | | > > __SCO_VERSION__ | | |402201601| |402201403| | > > | | | | | | | > > __USLC__ | 1 | | 1 | | 1 | | > > | | | | | | | > > __UNIXWARE__ | | | | | | | > > | | | | | | | > > __OPENSERVER__ | | 507 | | | | | > > | | | | | | | > > __sysv5__ | | | | 1 | | 1 | > > ----------------+---------+--------+---------+-------+---------+-------+ Thanks for this table. We'll be able to reference it in the future. Consequence: If we want operating system specific predefines, we have these: * For OpenServer 5: #ifdef _SCO_DS * For OpenServer 6 and UnixWare 7: #if defined __SCO_VERSION__ || defined __sysv5__ It's clear now. Bruno