]> Savannah Git Hosting - gnulib.git/commit
assert-h, verify: Fix conflict with standard C++ header files on macOS.
authorBruno Haible <bruno@clisp.org>
Sat, 4 Feb 2023 13:31:08 +0000 (14:31 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 4 Feb 2023 13:31:08 +0000 (14:31 +0100)
commit4e9fcc7b84fcac07a3e5a3cd5f66d1ff320dc8e8
treedfc2267cc0ec2c9fdb62bfd33b4c6dc603e1fdeb
parent45a9dc2e9abf8bb0ecfe399946209dd5da71d418
assert-h, verify: Fix conflict with standard C++ header files on macOS.

* lib/verify.h (_Static_assert): Don't redefine with clang ≥ 3.8.0
in C++ mode.
* tests/test-assert-h-c++.cc: Also check against conflict with the
standard C++ header files.
* tests/test-assert-h-c++2.cc: Likewise.
ChangeLog
lib/verify.h
tests/test-assert-h-c++.cc
tests/test-assert-h-c++2.cc