(Answer) (Category) SCO comp.unix.sco.programmer FAQ. : (Category) Misc for OpenServer 5.0.X and Unixware 7.x.x / OpenUNIX 8.x.x :
How do I make test for a SCO OS for preprocessor in ..., code specific to SCO Operating Systems.
I use the following and put the specific defines needed between the if and endif


I have found that is only works with the SCO native compilers.

 This one can be used for UnixWare 7.1.4 and OpenServer 6.  It is good
 to detect them from OpenServer 5.0.7.
# if defined(__USLC___)
This is the best for general SCO OS detection. # if defined(__SCO_VERSION__) # endif


This seems to work with all compilers, but check.

 # if defined(_SCO_DS)
 
 # endif

gerberb@zenez.com
[Append to This Answer]
Previous: (Answer) How do I get openssl-.0.9.6x to compile and make shared libraries on OpenServer 5.0.X, UnixWare 7.1.X and OpenUNIX 8.0.0?
Next: (Answer) How can I get cvs-1.11.5 to compile?
This document is: http://www.zenez.com/cgi-bin/scoprogfaq/faq?file=110
[Search] [Appearance]
This is a Faq-O-Matic 2.721.