From owner-freebsd-questions@FreeBSD.ORG Wed Oct 13 13:23:19 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 839D4106564A for ; Wed, 13 Oct 2010 13:23:19 +0000 (UTC) (envelope-from michael.grunewald@laposte.net) Received: from mx1.mpim-bonn.mpg.de (mx1.mpim-bonn.mpg.de [195.37.209.169]) by mx1.freebsd.org (Postfix) with ESMTP id 137C78FC18 for ; Wed, 13 Oct 2010 13:23:18 +0000 (UTC) X-IronPort-AV: E=McAfee;i="5400,1158,6134"; a="781545" X-IronPort-AV: E=Sophos;i="4.57,325,1283724000"; d="scan'208";a="781545" Received: from mailout2.mpim-bonn.mpg.de (HELO kleio.mpim-bonn.mpg.de) ([192.168.42.31]) by mx1.mpim-bonn.mpg.de with ESMTP; 13 Oct 2010 15:13:13 +0200 Received: from [192.68.254.3] (ino.mpim-bonn.mpg.de [192.68.254.3]) by kleio.mpim-bonn.mpg.de (Postfix) with ESMTP id 061A72006FB68; Wed, 13 Oct 2010 15:13:13 +0200 (CEST) Message-ID: <4CB5B068.6060709@laposte.net> Date: Wed, 13 Oct 2010 15:13:12 +0200 From: =?ISO-8859-1?Q?Michael_Gr=FCnewald?= User-Agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100329) MIME-Version: 1.0 To: Chetan Shukla References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 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 13:23:19 -0000 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