From owner-freebsd-questions@FreeBSD.ORG Fri May 9 18:03:25 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BF74D1065671 for ; Fri, 9 May 2008 18:03:25 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from mail-out3.apple.com (mail-out3.apple.com [17.254.13.22]) by mx1.freebsd.org (Postfix) with ESMTP id A73858FC15 for ; Fri, 9 May 2008 18:03:25 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from relay14.apple.com (relay14.apple.com [17.128.113.52]) by mail-out3.apple.com (Postfix) with ESMTP id 9F3982B2C73D; Fri, 9 May 2008 11:03:25 -0700 (PDT) Received: from relay14.apple.com (unknown [127.0.0.1]) by relay14.apple.com (Symantec Mail Security) with ESMTP id 875B32803F; Fri, 9 May 2008 11:03:25 -0700 (PDT) X-AuditID: 11807134-aa6d0bb000000ed7-9b-482491ed3d38 Received: from cswiger1.apple.com (cswiger1.apple.com [17.214.13.96]) by relay14.apple.com (Apple SCV relay) with ESMTP id 63B0328056; Fri, 9 May 2008 11:03:25 -0700 (PDT) Message-Id: <3FB2FF02-96CC-41E7-A540-6AE361EDBCBC@mac.com> From: Chuck Swiger To: stevefranks@ieee.org In-Reply-To: <539c60b90805091056s747d99a3n16b6ff6d9e3c094@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Fri, 9 May 2008 11:03:25 -0700 References: <539c60b90805091056s747d99a3n16b6ff6d9e3c094@mail.gmail.com> X-Mailer: Apple Mail (2.919.2) X-Brightmail-Tracker: AAAAAA== Cc: FreeBSD Mailing List Subject: Re: correct #define in source to specify FBSD vs. linux? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 May 2008 18:03:25 -0000 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