[cfe-dev] Feature-test macro whether compiling against libc++abi?
Stephan Bergmann via cfe-dev
cfe-dev at lists.llvm.org
Fri Feb 26 06:44:05 PST 2016
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?
More information about the cfe-dev
mailing list