]> git.ipfire.org Git - thirdparty/glibc.git/commit
<string.h>: Define __CORRECT_ISO_CPP_STRING_H_PROTO for Clang [BZ #25232]
authorKamlesh Kumar <kamleshbhalui@gmail.com>
Thu, 5 Dec 2019 15:49:00 +0000 (16:49 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 5 Dec 2019 15:50:00 +0000 (16:50 +0100)
commit953ceff17a4a15b10cfdd5edc3c8cae4884c8ec3
treef42e201d4ccf6d44b249579387444ed11c1d4d99
parent066d80a7cdfa5ab7b2dd66cb51e8abeed60227e5
<string.h>: Define __CORRECT_ISO_CPP_STRING_H_PROTO for Clang [BZ #25232]

Without the asm redirects, strchr et al. are not const-correct.

libc++ has a wrapper header that works with and without
__CORRECT_ISO_CPP_STRING_H_PROTO (using a Clang extension).  But when
Clang is used with libstdc++ or just C headers, the overloaded functions
with the correct types are not declared.

This change does not impact current GCC (with libstdc++ or libc++).
string/string.h