Tim Rice wrote: > > +# elif defined __SCO_VERSION__ /* SCO OpenServer/UnixWare */ > > While __SCO_VERSION__ covers Openserver 6 and UnixWare 7, > what is normally used for 6 and 7 is __USLC__ for the native compiler > and __sysv5__ for gcc > > Ie. > # elif defined __USLC__ || defined __sysv5__
If the code depends only on the operating system, let's use a #if for the operating system, not for the compilers (__USLC__). Because the day clang gets ported to that operating systems, the condition would not work any more. https://sourceforge.net/p/predef/wiki/OperatingSystems/ says that _SCO_DS can be used to test for SCO OpenServer. It seems that you say that __SCO_VERSION__ works as well. So let's use one of these. Bruno