string: Fix compilation error in C++ mode.
commit467fb4fcc12e1c1e2f20417272feb740566ecc6e
authorBruno Haible <bruno@clisp.org>
Sun, 10 May 2020 16:14:38 +0000 (10 18:14 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 10 May 2020 16:18:39 +0000 (10 18:18 +0200)
tree98cbda7f2d4e8545ba447847b750dfd2b1d12d91
parent4f4779e15adb7f1c61e8e13ab2bdf08974e33945
string: Fix compilation error in C++ mode.

* lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
_GL_WARN_ON_USE.
* lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
instead of _GL_WARN_ON_USE.
ChangeLog
lib/string.in.h
lib/warn-on-use.h