Date: Thu, 14 Oct 2010 09:56:37 +0530 From: Chetan Shukla <chetan.shukla@aricent.com> To: Chuck Swiger <cswiger@mac.com> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: RE: __FreeBSD__ not available and unsigned long type Message-ID: <DF735188ED91BD458FA0E0C17929339F95750DDA@GUREXMB01.ASIAN.AD.ARICENT.COM> In-Reply-To: <C47D354C-AC22-4487-B143-3C0D4CA5E196@mac.com> References: <DF735188ED91BD458FA0E0C17929339F95750C88@GUREXMB01.ASIAN.AD.ARICENT.COM> <C47D354C-AC22-4487-B143-3C0D4CA5E196@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DF735188ED91BD458FA0E0C17929339F95750DDA>