From nobody Mon Jan 26 08:41:51 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4f028J3cBhz6PwvJ for ; Mon, 26 Jan 2026 08:41:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4f028J0QpBz47rY for ; Mon, 26 Jan 2026 08:41:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1769416912; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=L1VOJeAS70r5RfPiJ2jLn4cbYNrkpVFl0Xz40KD1S1w=; b=yLY/x/Bcr37gckKOs/fbh2vYCIr41T0oCj0SWGwh6bW4RUI8HaJF1caWa1DxKPdDGcI8eW 73p/aQ1G0GX2uLreOlfOWussyf86Lusj4Qd1cye1w6U2estUPNar2aZOVydcjNaU6m44ED STfUnmxi2Dva/VggCSmwIosvbHu9VTOr+aHOOa+RomqYqHwdIY4r3AoIjHndiCxGb/I+pH WDPrzrJuntw5uOuuO7G9oOUvxJz3BRPJIbHNMdqO0Q2Gdjp0gXfLdTcgbseLOz3gzwcV5i bARyeGZ8dGtwHnujW3NBetQoGo8G3Zfjcj6E28+d2WjfpMsTTFvUIgFyIMSs8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1769416912; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=L1VOJeAS70r5RfPiJ2jLn4cbYNrkpVFl0Xz40KD1S1w=; b=UAwph4daOhC5Si1G+gz5/Bzf6oitf7Ycv5n7QrOJQsD6LPhskheaULu2NA38uKAuSd7e31 +rG9JnaBESmiVyybsMHxgx2phJ3wJ86TTzDq/kSY1TVJWpFxjKjSOI4Aho6LNKiVTKwwwI E6GVmsX3G0gBaU1k07uQ3HMqWwqxy9mGC4PkA1XUntbFxC3TOYnFWWFoH6yRWGzPaqGS09 cd/O/h5Jv5BYUOrLpt+/vPjjv8UryOOKvvY14PQUI1FY5KDfypVpynFY192s+rUTupnprH DkTsYWp6rz5sBIWqUeX6f394e5sovMGrJ9qSVy85fq9sq+kuEx5S8XiybtTMog== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1769416912; a=rsa-sha256; cv=none; b=JkK9P+drlYAgmALPDWBUmSuBjRVNIuDQNbgwOv7QM9n7u+U5ec1JDSV2j2LTQPZdAFVlKJ Q3cimNPTUTGsmU6IX2IY31wJ3FSW240fS/voJHkbq6rRUGn3DZdEDymQ6EEY5kOL/2i97D RoHBPzQfm2Sz+M9n9fw3bZz8if6+JBVD2/0P4TlqfafGeUTSIfDhSH6ICUEd7Byrt5ic/3 IS1TB8RZiUtv9m/9ZVii36PM+Me8KTny9UdS0mK5TQtguXPO4J7IXEUUAAerJXQo36JKwp QYeTS/SK1h0cBvw3/3KtboNqKBK+VLhbsZwS9JWMPDHiTVtYFDmaIygLnqWH9Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4f028J01Mrz1C2J for ; Mon, 26 Jan 2026 08:41:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 26bee by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 26 Jan 2026 08:41:51 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: dfc7e0631d08 - stable/14 - libc++ inttypes.h: define __STDC_CONSTANT_MACROS and __STDC_LIMIT_MACROS List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: dfc7e0631d08cc884c2386228b9707c9e0c9d4d2 Auto-Submitted: auto-generated Date: Mon, 26 Jan 2026 08:41:51 +0000 Message-Id: <697728cf.26bee.2e83c826@gitrepo.freebsd.org> The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=dfc7e0631d08cc884c2386228b9707c9e0c9d4d2 commit dfc7e0631d08cc884c2386228b9707c9e0c9d4d2 Author: Dimitry Andric AuthorDate: 2026-01-23 17:31:53 +0000 Commit: Dimitry Andric CommitDate: 2026-01-26 08:33:02 +0000 libc++ inttypes.h: define __STDC_CONSTANT_MACROS and __STDC_LIMIT_MACROS Before transitively including the base version of inttypes.h, define __STDC_CONSTANT_MACROS and __STDC_LIMIT_MACROS, because the base inttypes.h directly includes sys/stdint.h, instead of going through the 'regular' stdint.h. The libc++ version of the latter does define those macros, to ensure things like UINT64_C() and SIZE_MAX are defined even in C++98 or C++03. MFC after: 3 days (cherry picked from commit 3cdb6c9d92ecf479a0df338267f3f844ef6feeb2) --- contrib/llvm-project/libcxx/include/inttypes.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/contrib/llvm-project/libcxx/include/inttypes.h b/contrib/llvm-project/libcxx/include/inttypes.h index 8664412bd52f..501cb1c11d53 100644 --- a/contrib/llvm-project/libcxx/include/inttypes.h +++ b/contrib/llvm-project/libcxx/include/inttypes.h @@ -241,12 +241,19 @@ uintmax_t wcstoumax(const wchar_t* restrict nptr, wchar_t** restrict endptr, int # pragma GCC system_header #endif -/* C99 stdlib (e.g. glibc < 2.18) does not provide format macros needed - for C++11 unless __STDC_FORMAT_MACROS is defined +/* C99 stdlib (e.g. glibc < 2.18) does not provide macros needed + for C++11 unless __STDC_CONSTANT_MACROS, __STDC_FORMAT_MACROS + and __STDC_LIMIT_MACROS are defined */ +#if defined(__cplusplus) && !defined(__STDC_CONSTANT_MACROS) +# define __STDC_CONSTANT_MACROS +#endif #if defined(__cplusplus) && !defined(__STDC_FORMAT_MACROS) # define __STDC_FORMAT_MACROS #endif +#if defined(__cplusplus) && !defined(__STDC_LIMIT_MACROS) +# define __STDC_LIMIT_MACROS +#endif #if __has_include_next() # include_next