*BSD News Article 18473


Return to BSD News archive

Newsgroups: comp.os.386bsd.development
Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!osuunx.ucc.okstate.edu!moe.ksu.ksu.edu!ux1.cso.uiuc.edu!howland.reston.ans.net!noc.near.net!uunet!magrana1!rob
From: rob@magrana1.uucp (Rob Duncan)
Subject: conditional copmilation
Message-ID: <CA7s6D.361@magrana1.uucp>
Organization: Pomegranate Technology, Inc.
X-Newsreader: Tin 1.1 PL4
Date: Thu, 15 Jul 1993 16:23:01 GMT
Lines: 22

gcc 2.4.5 defines the following preprocessor symbols:

		#define __i386__ 1 
		#define __i386 1 
		#define __386BSD__ 1 
		#define ____386BSD____ 1 
		#define __BSD_NET2 1 
		#define i386 1 
		#define BSD_NET2 1 
		#define __unix 1 
		#define __BSD_NET2__ 1 
		#define __unix__ 1 
		#define __GNUC__ 2 
		#define unix 1 

which is the preferred symbol for introducing 386bsd-specific code in a
conditional compilation?  my vote goes for __386BSD__.
-- 
Rob Duncan                                       Talk: +1-415-325-8780
Pomegranate Technology, Inc.                      Fax: +1-415-321-1334
235 Embarcadero Road                 UUCP: ...!uunet!magrana1!r.duncan
Palo Alto, CA 94301                 Internet: r.duncan@pomegranate.com