1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Define LLVM_HAS_STRONG_ENUMS

This is needed to guard an upcoming feature in clang until the C++11 transition
is complete, at which point it can be removed.

llvm-svn: 197895
This commit is contained in:
Alp Toker 2013-12-22 22:19:49 +00:00
parent 22d81b823e
commit 527ab93ba1

View File

@ -397,10 +397,13 @@
/// with MSVC.
#if __has_feature(cxx_strong_enums)
# define LLVM_ENUM_INT_TYPE(intty) : intty
#define LLVM_HAS_STRONG_ENUMS 1
#elif defined(_MSC_VER) && _MSC_VER >= 1600 // Added in MSVC 2010.
# define LLVM_ENUM_INT_TYPE(intty) : intty
#define LLVM_HAS_STRONG_ENUMS 1
#else
# define LLVM_ENUM_INT_TYPE(intty)
#define LLVM_HAS_STRONG_ENUMS 0
#endif
/// \brief Does the compiler support generalized initializers (using braced