diff options
author | Eric Fiselier <eric@efcs.ca> | 2017-01-06 21:42:58 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2017-01-06 21:42:58 +0000 |
commit | 541f9e28309c77b6fd9ca819e892cf98a768a26a (patch) | |
tree | 3bc8a438e198f6a2fcd12b1c31dc15c59da41f52 /libcxx/include/support/win32 | |
parent | d1b954884cd83701054f2c1ff8efc7b84b5c8cc4 (diff) | |
download | bcm5719-llvm-541f9e28309c77b6fd9ca819e892cf98a768a26a.tar.gz bcm5719-llvm-541f9e28309c77b6fd9ca819e892cf98a768a26a.zip |
Add _LIBCPP_COMPILER_[CLANG|GCC|MSVC|IBM] macros.
This patch refactors the compiler detection done in `__config` by creating a
set of `_LIBCPP_COMPILER_<TYPE>` macros. The goal of this patch is to make
it easier to detect what compiler is being used outside of `__config`.
Additionally this patch removes workarounds for GCC in `__bit_reference`. I
tested GCC 4.8 and 4.9 without the workaround and neither seemed to need it
anymore.
llvm-svn: 291286
Diffstat (limited to 'libcxx/include/support/win32')
-rw-r--r-- | libcxx/include/support/win32/support.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/include/support/win32/support.h b/libcxx/include/support/win32/support.h index 17ee1980a64..f9613445cff 100644 --- a/libcxx/include/support/win32/support.h +++ b/libcxx/include/support/win32/support.h @@ -18,7 +18,7 @@ #include <cstdarg> // va_ macros // "builtins" not implemented here for Clang or GCC as they provide // implementations. Assuming required for elsewhere else, certainly MSVC. -#if defined(_LIBCPP_MSVC) +#if defined(_LIBCPP_COMPILER_MSVC) #include <intrin.h> #endif #if defined(_LIBCPP_MSVCRT) @@ -49,7 +49,7 @@ size_t wcsnrtombs(char *__restrict dst, const wchar_t **__restrict src, #define _Exit _exit #endif -#if defined(_LIBCPP_MSVC) +#if defined(_LIBCPP_COMPILER_MSVC) // Bit builtin's make these assumptions when calling _BitScanForward/Reverse // etc. These assumptions are expected to be true for Win32/Win64 which this |