mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-07 10:07:17 +00: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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197895 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4ef09de13e
commit
7c29d748b8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user