diff options
-rw-r--r-- | libcxx/include/__config | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libcxx/include/__config b/libcxx/include/__config index a05bd9228b8..b0e585facf7 100644 --- a/libcxx/include/__config +++ b/libcxx/include/__config @@ -111,6 +111,15 @@ #define _LIBCPP_COMPILER_IBM #endif +// FIXME: ABI detection should be done via compiler builtin macros. This +// is just a placeholder until Clang implements such macros. For now assume +// that Windows compilers pretending to be MSVC++ target the microsoft ABI. +#if defined(_WIN32) && defined(_MSC_VER) +# define _LIBCPP_ABI_MICROSOFT +#else +# define _LIBCPP_ABI_ITANIUM +#endif + // Need to detect which libc we're using if we're on Linux. #if defined(__linux__) #include <features.h> |