Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rice!sun-spots-request From: ki!dwatts@uunet.uu.net (Dan Watts) Newsgroups: comp.sys.sun Subject: How to know SunOS rev in 'cc' Keywords: Miscellaneous Message-ID: <10154@brazos.Rice.edu> Date: 23 Jul 90 19:11:19 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 10 Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 9, Issue 277, message 11 Originator: spots@titan.rice.edu 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.