projects
/
libcds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21c7ce2
)
Added [[deprected]] attribute support for vc14
author
khizmax
<libcds.dev@gmail.com>
Tue, 15 Sep 2015 20:53:57 +0000
(23:53 +0300)
committer
khizmax
<libcds.dev@gmail.com>
Tue, 15 Sep 2015 20:53:57 +0000
(23:53 +0300)
cds/compiler/vc/defs.h
patch
|
blob
|
history
diff --git
a/cds/compiler/vc/defs.h
b/cds/compiler/vc/defs.h
index 596a7a3d7a6bf068049872c5de833e8922591603..4d8540b28a12315e2d1c46c4f7bda0a48f3f10ad 100644
(file)
--- 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 <cds/compiler/vc/compiler_barriers.h>