Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!ames!ucbcad!ucbvax!decvax!decwrl!sun!gorodish!guy From: guy@gorodish.UUCP Newsgroups: comp.lang.c Subject: Re: "unix" macro on System V? Message-ID: <15807@sun.uucp> Date: Sun, 29-Mar-87 04:45:07 EST Article-I.D.: sun.15807 Posted: Sun Mar 29 04:45:07 1987 Date-Received: Sun, 29-Mar-87 23:42:20 EST References: <317@aucs.UUCP> <318@aucs.UUCP> Sender: news@sun.uucp Distribution: na Lines: 10 > In 4.3BSD Unix C there is a macro called "unix" which may be used to > control compilation. E.g: > > I do not have access to a system to test this, so I was wondering > if such a macro (or something similar) exists in System V C? Berkeley didn't invent this. AT&T did - specifically, the people at Bell Labs did. It dates back to V7. 4BSD, 2BSD, V7, S3, and S5 all have it; the reason why is that the preprocessor portion of their C compilers is derived from the preprocessor done at the labs for V7.