Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Oct 2010 15:13:12 +0200
From:      =?ISO-8859-1?Q?Michael_Gr=FCnewald?= <michael.grunewald@laposte.net>
To:        Chetan Shukla <chetan.shukla@aricent.com>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: __FreeBSD__ not available and unsigned long type
Message-ID:  <4CB5B068.6060709@laposte.net>
In-Reply-To: <DF735188ED91BD458FA0E0C17929339F95750C88@GUREXMB01.ASIAN.AD.ARICENT.COM>
References:  <DF735188ED91BD458FA0E0C17929339F95750C88@GUREXMB01.ASIAN.AD.ARICENT.COM>

next in thread | previous in thread | raw e-mail | index | archive | help
dear Chetan,

Chetan Shukla wrote:

> I have two doubts working further ion FreeBSD.

> In my machine (8.0-RELEASE) I am not getting the macro __FreeBSD__.
> As a workaround I have to conditionally define it in makefile.
> Could someone define what is missing in this case.

For this one, I do not have any clue.

> Moreover when I have to use unsigned long and signed long the only
> Options that I have are to write "unsigned long " and "signed long"
> Nothing more specific like uint64_t?Or are there any special header files that need to be included.

The type uint64_t is indeed defined by the header stdint.h (mnemonic:
standard integer types).  This seems to suit the requirements of C99.
Try `man stdint' at the command line.

Best regards,
Michael




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CB5B068.6060709>