From owner-freebsd-bugs@FreeBSD.ORG Mon Dec 24 10:00:01 2012 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 64682890 for ; Mon, 24 Dec 2012 10:00:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 4902F8FC16 for ; Mon, 24 Dec 2012 10:00:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBOA01bw061700 for ; Mon, 24 Dec 2012 10:00:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBOA01P1061699; Mon, 24 Dec 2012 10:00:01 GMT (envelope-from gnats) Date: Mon, 24 Dec 2012 10:00:01 GMT Message-Id: <201212241000.qBOA01P1061699@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "b.f." Subject: Re: misc/174549: UINT64_MAX missing in C++ Program X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: "b.f." List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Dec 2012 10:00:01 -0000 The following reply was made to PR misc/174549; it has been noted by GNATS. From: "b.f." To: bug-followup@FreeBSD.org, Robin Carey Cc: Subject: Re: misc/174549: UINT64_MAX missing in C++ Program Date: Mon, 24 Dec 2012 09:51:59 +0000 UINT*_MAX and stdint.h are governed by the C99 standard (Section 7.18). A footnote in that that section states that "C++ implementations should define these macros only when __STDC_LIMIT_MACROS is defined before is included." The system headers in FreeBSD and many other implementations follow this recommendation. If you want to use these macros in C++ code unconditionally, then you should include instead, as described in the C++11 standard ( the cstdint.syn section in Chapter 18). You probably ought to be doing this anyway. b.