From 8392ab209e9c6fac9d5d3c8b70de396564458237 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Sat, 28 Sep 2013 18:35:31 +0000 Subject: Add a set of macros for using the new '[[[deprecated]]' attribute. No code changes (yet) llvm-svn: 191625 --- libcxx/include/__config | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libcxx/include') diff --git a/libcxx/include/__config b/libcxx/include/__config index 4d79d7fcd44..dead4c69935 100644 --- a/libcxx/include/__config +++ b/libcxx/include/__config @@ -571,12 +571,20 @@ template struct __static_assert_check {}; # endif #endif // _LIBCPP_STD_VER +#if _LIBCPP_STD_VER > 11 +#define _LIBCPP_DEPRECATED [[deprecated]] +#else +#define _LIBCPP_DEPRECATED +#endif + #if _LIBCPP_STD_VER <= 11 #define _LIBCPP_CONSTEXPR_AFTER_CXX11 #define _LIBCPP_EXPLICIT_AFTER_CXX11 +#define _LIBCPP_DEPRECATED_AFTER_CXX11 #else #define _LIBCPP_CONSTEXPR_AFTER_CXX11 constexpr #define _LIBCPP_EXPLICIT_AFTER_CXX11 explicit +#define _LIBCPP_DEPRECATED_AFTER_CXX11 [[deprecated]] #endif #endif // _LIBCPP_CONFIG -- cgit v1.2.3