From: khizmax Date: Tue, 15 Sep 2015 20:53:57 +0000 (+0300) Subject: Added [[deprected]] attribute support for vc14 X-Git-Tag: v2.1.0~109 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c0a5bfb50e0f0eca72f8ea3596cb4291a5666743;p=libcds.git Added [[deprected]] attribute support for vc14 --- 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