]> git.ipfire.org Git - thirdparty/glibc.git/commit
stdlib: Do not define once_flag, ONCE_FLAG_INIT for C++
authorFlorian Weimer <fweimer@redhat.com>
Tue, 11 Nov 2025 17:20:10 +0000 (18:20 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 11 Nov 2025 17:20:10 +0000 (18:20 +0100)
commit2eff71d28946896d085fbd0836ed1394bb55d352
tree1b444355b866d0884d3b6aa573a36e877009a2b2
parent71d9f47b5a7a22a0576aea699cfd1820a83fd41b
stdlib: Do not define once_flag, ONCE_FLAG_INIT for C++

The definition of once_flag conflicts with std::once_flag in
if “using namespace std;” is active.

Updates commit a7ddbf456d97ac8d1aa7afd735e196a1488bd874
("Add once_flag, ONCE_FLAG_INIT and call_once to stdlib.h for C23").

Suggested-by: Jonathan Wakely <jwakely@redhat.com>
Reviewed-by: Collin Funk <collin.funk1@gmail.com>
manual/threads.texi
stdlib/stdlib.h