Date: Wed, 27 Oct 1999 11:07:25 +0100 From: Roger Hardiman <roger@cs.strath.ac.uk> To: hackers@freebsd.org Subject: Is there anything like #ifdef BSD Message-ID: <3816CEDD.446B@cs.strath.ac.uk>
next in thread | raw e-mail | index | archive | help
Hi, I'm working with someone porting linux code to FreeBSD. Actually, they want to port it to all BSDs. So, rather than having #if defined (FreeBSD) || defined (NetBSD) || defined (OpenBSD || defined (bsdi) I am looking for a #if defined (BSD) or #ifdef BSD Is there such a beast, and do the other BSDs have it too? If not, I'll just go for the nice and simple #if defined (FreeBSD) || defined (NetBSD) || defined (OpenBSD || defined (bsdi) #define BSD #endif in a global header file. Roger -- Roger Hardiman | Telepresence Research Group roger@cs.strath.ac.uk | DMEM, University of Strathclyde tel: 0141 548 2897 | Glasgow, Scotland, G1 1XJ, UK fax: 0141 552 0557 | http://www.telepresence.strath.ac.uk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3816CEDD.446B>