From c0a5bfb50e0f0eca72f8ea3596cb4291a5666743 Mon Sep 17 00:00:00 2001 From: khizmax Date: Tue, 15 Sep 2015 23:53:57 +0300 Subject: [PATCH] Added [[deprected]] attribute support for vc14 --- cds/compiler/vc/defs.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cds/compiler/vc/defs.h b/cds/compiler/vc/defs.h index 596a7a3d..4d8540b2 100644 --- a/cds/compiler/vc/defs.h +++ b/cds/compiler/vc/defs.h @@ -125,7 +125,11 @@ #define CDS_CLASS_ALIGNMENT(n) __declspec( align(n) ) // Attributes -#define CDS_DEPRECATED( reason ) __declspec(deprecated( reason )) +#if CDS_COMPILER_VERSION >= CDS_COMPILER_MSVC14 +# define CDS_DEPRECATED( reason ) [[deprecated( reason )]] +#else +# define CDS_DEPRECATED( reason ) __declspec(deprecated( reason )) +#endif #include -- 2.34.1