__FreeBSD__ not available and unsigned long type

Chetan Shukla chetan.shukla at aricent.com
Thu Oct 14 04:26:46 UTC 2010


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 at mac.com]
Sent: Wednesday, October 13, 2010 11:08 PM
To: Chetan Shukla
Cc: freebsd-questions at 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 privileged 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 message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus."


More information about the freebsd-questions mailing list