From owner-freebsd-hackers Sat Feb 22 15:17:11 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id PAA27306 for hackers-outgoing; Sat, 22 Feb 1997 15:17:11 -0800 (PST) Received: from ocean.campus.luth.se (ocean.campus.luth.se [130.240.194.116]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA27286 for ; Sat, 22 Feb 1997 15:17:04 -0800 (PST) Received: (from karpen@localhost) by ocean.campus.luth.se (8.7.5/8.7.3) id AAA09172; Sun, 23 Feb 1997 00:20:17 +0100 (MET) From: Mikael Karpberg Message-Id: <199702222320.AAA09172@ocean.campus.luth.se> Subject: Re: cvs commit: src/contrib/gcc/config/i386 freebsd-elf.h freebsd.h To: joerg_wunsch@uriah.heep.sax.de Date: Sun, 23 Feb 1997 00:20:16 +0100 (MET) Cc: obrien@freefall.freebsd.org, hackers@freebsd.org In-Reply-To: from J Wunsch at "Feb 22, 97 08:10:55 pm" X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk According to J Wunsch: > As David E. O'Brien wrote: > > > obrien 97/02/16 12:55:34 > > > > Modified: contrib/gcc/config/i386 freebsd-elf.h freebsd.h > > Log: > > Add _BSD4_4 as a predefined symbol. > > Peter Dufault (dufault@hda.com) suggested this is the most approate symbol > > to use. > > > > 2.2-R candidate. > > > > Revision Changes Path > > 1.2 +1 -1 src/contrib/gcc/config/i386/freebsd-elf.h > > 1.4 +1 -1 src/contrib/gcc/config/i386/freebsd.h > > What ever came out of this discussion? 2.2 candidate, or dead end? It's not really needed. What about: ==== myprogconfig.h ==== #if defined(FreeBSD) || defined(OpenBSD) || defined(NetBSD) #define MYBSDDEF #endif ======================== There you have your single define. It's very simple to do, and it works on old versions of the OSes too. Ofcourse, I don't think it hurts to have that _BSD4_4 define either. Only thing it does is give a very minor polution to the define namespace. Just my $0.02... /Mikael