Sprout/sprout/config/compiler/clang.hpp

47 lines
1.1 KiB
C++
Raw Normal View History

#ifndef SPROUT_CONFIG_COMPILER_CLANG_HPP
#define SPROUT_CONFIG_COMPILER_CLANG_HPP
#if !__has_feature(cxx_constexpr)
# define SPROUT_NO_CXX11_CONSTEXPR
#endif
2012-12-17 14:10:23 +00:00
#if !__has_feature(cxx_defaulted_functions)
# define SPROUT_NO_CXX11_DEFAULTED_FUNCTIONS
2012-12-17 14:10:23 +00:00
#endif
#if !__has_feature(cxx_deleted_functions)
# define SPROUT_NO_CXX11_DELETED_FUNCTIONS
2012-12-17 14:10:23 +00:00
#endif
#if !__has_feature(cxx_explicit_conversions)
# define SPROUT_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS
#endif
#if !__has_feature(cxx_noexcept)
# define SPROUT_NO_CXX11_NOEXCEPT
#endif
#if !__has_feature(cxx_alias_templates)
# define SPROUT_NO_CXX11_TEMPLATE_ALIASES
#endif
#if !__has_feature(cxx_user_literals)
# define SPROUT_NO_CXX11_USER_DEFINED_LITERALS
#endif
#if !__has_feature(cxx_delegating_constructors)
# define SPROUT_NO_CXX11_DELEGATING_CONSTRUCTORS
#endif
2012-12-17 14:10:23 +00:00
#if !__has_feature(cxx_unicode_literals)
# define SPROUT_NO_CXX11_UNICODE_LITERALS
2012-12-17 14:10:23 +00:00
#endif
#define SPROUT_NO_CXX14_CONSTEXPR
#if !defined(SPROUT_NO_CXX11_CONSTEXPR)
# define SPROUT_WORKAROUND_NOT_TERMINATE_RECURSIVE_CONSTEXPR_FUNCTION_TEMPLATE
#endif
2012-07-05 08:39:19 +00:00
#endif // #ifndef SPROUT_CONFIG_COMPILER_CLANG_HPP