[cfe-dev] Feature-test macro whether compiling against libc++abi?

Eric Fiselier via cfe-dev cfe-dev at lists.llvm.org
Sat Mar 5 23:15:08 PST 2016


That's by design.
On Feb 26, 2016 7:44 AM, "Stephan Bergmann via cfe-dev" <
cfe-dev at lists.llvm.org> wrote:

> Is there some sort of feature-test macro that client code can use to
> determine whether it is being compiled against libc++abi?
>
> I see that there is
>
>   #define _LIBCPPABI_VERSION 1002
>
> in the libc++abi-provided cxxabi.h.  It would apparently happen to help
> tell libc++abi from libstdc++/libsupc++ (where _LIBCPPABI_VERSION is left
> undefined after #include <cxxabi.h>), but I'm not sure whether that's by
> design or by accident?
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160306/a25c476f/attachment.html>


More information about the cfe-dev mailing list