[cfe-dev] Clang++ always defines _GNU_SOURCE
Joerg Sonnenberger via cfe-dev
cfe-dev at lists.llvm.org
Tue Jun 14 02:01:51 PDT 2016
On Tue, Jun 14, 2016 at 04:40:50PM +0800, Lei Zhang via cfe-dev wrote:
> I understand that g++ does this because stdlibc++ heavily relies on
> _GNU_SOURCE. But what is the reason for clang++ to do so when using
> libc++? Does libc++ also rely on this macro to work on Linux?
I would assume that many of the same stupid visibility restrictions
apply to libc++ just as well.
Joerg
More information about the cfe-dev
mailing list