From nobody Mon Jan 26 08:42:08 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 4f028c5Brrz6PwyK for ; Mon, 26 Jan 2026 08:42:08 +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 4f028c2MKqz48KV for ; Mon, 26 Jan 2026 08:42:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1769416928; 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=XXT4l93y/Br3qmPubcaiVfqpvZRdk1I6nV3zGg/Wprk=; b=hxpw88GCs+ql8mzwpCVv9MnzGmSvcB1A6phD5YukjR4u2ku/HL97Iw6eduhwAlQ4LEuPqu Rr91T1tm92QV4MsKsNTB66tADksIv8nU+NQTfB0Ba1UoWr5yCM6dCcvACmmC4uIMvZ3obR g9ZYEQ3S3YjF4jhKJ1GzQ7Tgs18pHNPgGmbKElcmdoayCwm83k+aNtP/x4ZYGngcTMYscM SxWbPrL6YHcuhYcctoiksh9IntQTo18tSO1u0Z3rMuwhAC7gXPLJWZJpQMDahjPm3kpb90 sYx2HqP8zvJx7UsodyyJM1lAIEPkx2hFrxKzmf2fAK/+bEeoZxPywNS658uusg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1769416928; 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=XXT4l93y/Br3qmPubcaiVfqpvZRdk1I6nV3zGg/Wprk=; b=MESro1DzLORF8pX35Q+nc1ZJ+oSgAWRovyDY13uQL+FPyvKxHedb3Cr07qqSWcgel4CsaD wNqriZ/kUEciKrykTJ8Ai+eV9ODYbnhqQABUMpESjPvH8QwpzYL4sGI40iOUPuR3RiJs/H ihshbBipajphw4P+Xl+BE/jAQavXuICuyLOM/n2+XIBKtywZ12V9E8hd/C90lQDAu5PD6x NnNTP2t6LZkSX+ECG4qzP0rV7j4opiVO/fO6pUFLTfSOXS6SHKssCWg6KELUNVUTrts846 XiWjFzDAYmPsp8rPzikaiB5MON3a8VIfCs+zO+lH0WVY8o73rm4cqQF1QXDogw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1769416928; a=rsa-sha256; cv=none; b=Sj1pbpJCY74jlMOMHX81ev8qXvy81MHqPClZP9KHXV8F6Gga3YEaTpzWKsSuWAGQGH48bg 45vTXwHeis4c+M5lIQ7arZEZNkaT7GXkBehB9JSzclqcVMhCneIw7EvzNHtJ8wo/YCnF4K d8fWMxGbUlbkSTOQWh0GOdwFjue2qUF6SLi6xBdNhV8aQtSwBvdlnm6NHgvjhv4jnysaTh nMqYLdF47gz1mxO17ZGShgj7n+uvpYt/KHh9j/CwlB63PkuZAaOjdmY3O4tdOxoSiiFibJ 4XFbq3FZAjNQe7t62mt4ZPml7Pfsdl/wCsNV7Ce01t0bVnCoqcLERbGfLiIeNg== 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 4f028c1h7Sz1Ck3 for ; Mon, 26 Jan 2026 08:42:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 267d8 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 26 Jan 2026 08:42:08 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 731fa6c8f41b - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: 731fa6c8f41b5563f120d172e69cff19b3cf7e6a Auto-Submitted: auto-generated Date: Mon, 26 Jan 2026 08:42:08 +0000 Message-Id: <697728e0.267d8.743a9dea@gitrepo.freebsd.org> The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=731fa6c8f41b5563f120d172e69cff19b3cf7e6a commit 731fa6c8f41b5563f120d172e69cff19b3cf7e6a Author: Dimitry Andric AuthorDate: 2026-01-23 17:31:53 +0000 Commit: Dimitry Andric CommitDate: 2026-01-26 08:33:08 +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