How to know SunOS rev in 'cc'

Dan Watts ki!dwatts at uunet.uu.net
Tue Jul 24 05:11:19 AEST 1990


When compiling a problem under SunOS, is there a symbol defined by the
compiler that can be used to determine the rev of the O/S it's being
compiled on?  I'm trying not to add yet another -dxxxx to my cc line.  I
need to be able to compile the same program on both SunOS 4.0.3 and SunOS
4.1

Any pointers would be apreciated.

CompuServe: >INTERNET:uunet.UU.NET!ki!dwatts    Dan Watts     
UUCP      : ...!uunet!ki!dwatts                 Ki Research, Inc.



More information about the Comp.sys.sun mailing list