File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 70
70
#if defined(_MSC_VER) && _MSC_VER >= 1500 // MSVC 2008
71
71
// / Indicates that the following function is deprecated.
72
72
#define JSONCPP_DEPRECATED (message ) __declspec(deprecated(message))
73
+ #elif defined(__clang__) && defined(__has_feature)
74
+ #if __has_feature(attribute_deprecated_with_message)
75
+ #define JSONCPP_DEPRECATED (message ) __attribute__ ((deprecated(message)))
76
+ #endif
77
+ #elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5))
78
+ #define JSONCPP_DEPRECATED (message ) __attribute__ ((deprecated(message)))
79
+ #elif defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
80
+ #define JSONCPP_DEPRECATED (message ) __attribute__((__deprecated__))
73
81
#endif
74
82
75
83
#if !defined(JSONCPP_DEPRECATED)
You can’t perform that action at this time.
0 commit comments