From owner-freebsd-questions@FreeBSD.ORG Wed Oct 13 15:12:38 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 2F188106564A for ; Wed, 13 Oct 2010 15:12:38 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from blue.qeng-ho.org (blue.qeng-ho.org [217.155.128.241]) by mx1.freebsd.org (Postfix) with ESMTP id ADB5D8FC08 for ; Wed, 13 Oct 2010 15:12:37 +0000 (UTC) Received: from fileserver.home.qeng-ho.org (localhost [127.0.0.1]) by fileserver.home.qeng-ho.org (8.14.4/8.14.4) with ESMTP id o9DFCUEc015860; Wed, 13 Oct 2010 16:12:30 +0100 (BST) (envelope-from freebsd@qeng-ho.org) Message-ID: <4CB5CC5E.1060400@qeng-ho.org> Date: Wed, 13 Oct 2010 16:12:30 +0100 From: Arthur Chance User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.12) Gecko/20101007 Thunderbird/3.0.8 MIME-Version: 1.0 To: Chetan Shukla References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Wed, 13 Oct 2010 15:12:38 -0000 On 10/13/10 13:47, Chetan Shukla wrote: > Hi > > 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. It's compiled into gcc. Specifically /usr/src/contrib/gcc/config/freebsd-spec.h, which contains the line builtin_define_with_int_value ("__FreeBSD__", FBSD_MAJOR); > 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. #include > Looking forward for guidance, -- "Although the wombat is real and the dragon is not, few know what a wombat looks like, but everyone knows what a dragon looks like." -- Avram Davidson, _Adventures in Unhistory_