[cfe-dev] Best way to detect libc++ at compile time?
Joe Groff
arcata at gmail.com
Sat Jul 21 13:56:20 PDT 2012
On Sat, Jul 21, 2012 at 1:46 PM, Rich E <reakinator at gmail.com> wrote:
> I was doing this for a while, but I decided it was cluttering up the
> includes section since you also need a check for __clang__
You can do something like this so you don't need to guard every single
use of __has_include:
#if !__clang__
#define __has_include(x) 0
#endif
More information about the cfe-dev
mailing list