From owner-freebsd-questions@FreeBSD.ORG Thu Oct 14 04:26:46 2010 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 349F41065670 for ; Thu, 14 Oct 2010 04:26:46 +0000 (UTC) (envelope-from chetan.shukla@aricent.com) Received: from jaguar.aricent.com (jaguar.aricent.com [121.241.96.11]) by mx1.freebsd.org (Postfix) with ESMTP id 69A988FC23 for ; Thu, 14 Oct 2010 04:26:45 +0000 (UTC) Received: from jaguar.aricent.com (localhost [127.0.0.1]) by postfix.imss71 (Postfix) with ESMTP id C434A36B38; Thu, 14 Oct 2010 09:55:10 +0530 (IST) Received: from GUREXHT02.ASIAN.AD.ARICENT.COM (gurexht02.asian.ad.aricent.com [10.203.171.138]) by jaguar.aricent.com (Postfix) with ESMTP id A253036B2C; Thu, 14 Oct 2010 09:55:10 +0530 (IST) Received: from GUREXMB01.asian.ad.aricent.com ([10.203.171.130]) by GUREXHT02.ASIAN.AD.ARICENT.COM ([10.203.171.138]) with mapi; Thu, 14 Oct 2010 09:56:42 +0530 From: Chetan Shukla To: Chuck Swiger Date: Thu, 14 Oct 2010 09:56:37 +0530 Thread-Topic: __FreeBSD__ not available and unsigned long type Thread-Index: Actq/XIsTQQjda7ERlGVNqMQ0wWOIQAWmDAg Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "freebsd-questions@freebsd.org" Subject: RE: __FreeBSD__ not available and unsigned long type 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: Thu, 14 Oct 2010 04:26:46 -0000 Hi, I tried this and got following output: cerebrus# touch foo.h; cpp -dM foo.h | grep FreeBSD #define __FreeBSD_cc_version 800001 #define __VERSION__ "4.2.1 20070719 [FreeBSD]" #define __FreeBSD__ 8 It means __FreeBSD__ is defined but how then to use it? Regards, Chetan -----Original Message----- From: Chuck Swiger [mailto:cswiger@mac.com] Sent: Wednesday, October 13, 2010 11:08 PM To: Chetan Shukla Cc: freebsd-questions@freebsd.org Subject: Re: __FreeBSD__ not available and unsigned long type On Oct 13, 2010, at 5:47 AM, Chetan Shukla wrote: > In my machine (8.0-RELEASE) I am not getting the macro __FreeBSD__. > As a workaround I have to conditionally define it in makefile. What does: touch foo.h; cpp -dM foo.h | grep FreeBSD ...return? Regards, -- -Chuck "DISCLAIMER: This message is proprietary to Aricent and is intended solely = for the use of the individual to whom it is addressed. It may contain privi= leged or confidential information and should not be circulated or used for = any purpose other than for what it is intended. If you have received this m= essage in error, please notify the originator immediately. If you are not t= he intended recipient, you are notified that you are strictly prohibited fr= om using, copying, altering, or disclosing the contents of this message. Ar= icent accepts no responsibility for loss or damage arising from the use of = the information transmitted by this email including damage from virus."