]> Savannah Git Hosting - gnulib.git/commit
c-nullptr: Fix conflict with libstdc++ in GCC >= 11.
authorBruno Haible <bruno@clisp.org>
Mon, 6 Feb 2023 03:15:15 +0000 (04:15 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 6 Feb 2023 03:17:33 +0000 (04:17 +0100)
commitc24b80755ec08abe0976483984fd0ddff3c12ca4
tree31412caae0bfdf9f8d7fdca39915b9d75f9f2dbf
parent9922eb1b1d665ee68dd1811813818b8fde43a3d9
c-nullptr: Fix conflict with libstdc++ in GCC >= 11.

Reported by Bjarni Ingi Gislason <bjarniig@simnet.is> in
<https://lists.gnu.org/archive/html/bug-gnulib/2023-02/msg00030.html>.

* m4/c-nullptr.m4 (gl_C_NULLPTR): Don't define nullptr if it is already
defined. In C++ mode, ignore the result of the configure test and don't
define it when we know that the C++ compiler already supports it.
ChangeLog
m4/c-nullptr.m4