Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 May 2008 11:03:25 -0700
From:      Chuck Swiger <cswiger@mac.com>
To:        stevefranks@ieee.org
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: correct #define in source to specify FBSD vs. linux?
Message-ID:  <3FB2FF02-96CC-41E7-A540-6AE361EDBCBC@mac.com>
In-Reply-To: <539c60b90805091056s747d99a3n16b6ff6d9e3c094@mail.gmail.com>
References:  <539c60b90805091056s747d99a3n16b6ff6d9e3c094@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On May 9, 2008, at 10:56 AM, Steve Franks wrote:
> On and on I charge porting linux engineering tools.  Major pita.  I
> see a bunch of #ifdef __APPLE__ lines to pull in alternate headers;
> what's the equiv for FreeBSD?

__FreeBSD__

You might find the output of "touch foo.h ; cpp -dM fooo.h"  
interesting...

-- 
-Chuck




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3FB2FF02-96CC-41E7-A540-6AE361EDBCBC>