This is an archive of the discontinued LLVM Phabricator instance.

libcxx: Stop providing a definition of __GLIBC_PREREQ.
ClosedPublic

Authored by pcc on Jan 9 2018, 5:12 PM.

Details

Summary

An application may determine whether the C standard library is glibc
by testing whether __GLIBC_PREREQ is defined. This breaks if libc++
provides its own definition. Instead, define our own macro in our
namespace with the desired semantics.

Diff Detail

Repository
rL LLVM

Event Timeline

pcc created this revision.Jan 9 2018, 5:12 PM
This revision is now accepted and ready to land.Jan 10 2018, 6:53 AM
This revision was automatically updated to reflect the committed changes.