Incorrect definition of wcsstr
for older glibc depending on include order
#62638
Labels
libc++
libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
This snippet fails to compile, as expected:
D148542 adds another path to including the system
wchar.h
without defining__CORRECT_ISO_CPP_WCHAR_H_PROTO
as we do elsewhere, and older versions of glibc did not declare__CORRECT_ISO_CPP_WCHAR_H_PROTO
for itself correctly when clang is the host compiler. In that situation, changing the include order causes it to unexpectedly compile:D150015 fixes this.
The text was updated successfully, but these errors were encountered: