We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdbc35f commit 871b311Copy full SHA for 871b311
include/json/config.h
@@ -70,6 +70,11 @@
70
#if defined(_MSC_VER) && _MSC_VER >= 1500 // MSVC 2008
71
/// Indicates that the following function is deprecated.
72
#define JSONCPP_DEPRECATED(message) __declspec(deprecated(message))
73
+#elif (defined(__clang__) && __has_attribute(deprecated)) || \
74
+ (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)))
75
+#define JSONCPP_DEPRECATED(message) __attribute__ ((deprecated(message)))
76
+#elif defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
77
+#define JSONCPP_DEPRECATED(message) __attribute__((__deprecated__))
78
#endif
79
80
#if !defined(JSONCPP_DEPRECATED)
0 commit comments