aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2021-02-25 12:06:43 -0800
committerHaibo Huang <hhb@google.com>2021-03-01 20:52:07 +0000
commitca86dbedfa505cc2762b51e6308b8f9ea8f63fe6 (patch)
treed44e03c4a271758289dae2caddce0d78bbc10dda
parent00a03b0f354bfda61c76b407569cf15c0680d1eb (diff)
downloadjsoncpp-ca86dbedfa505cc2762b51e6308b8f9ea8f63fe6.tar.gz
[jsoncpp] disable JSONCPP_DEPRECATED to make upgrade easier
There are too many references to the deprecated APIs. It is difficult to upgrade them all at once, or add -Wno-deprecated-declarations to all of them. Bug: 170642246 Change-Id: Icf9d1d024042d8b541c8d8d427fb35ef58630baa
-rw-r--r--include/json/config.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/json/config.h b/include/json/config.h
index 6359273..6912567 100644
--- a/include/json/config.h
+++ b/include/json/config.h
@@ -74,6 +74,7 @@ extern JSON_API int msvc_pre1900_c99_snprintf(char* outBuf, size_t size,
// C++11 should be used directly in JSONCPP.
#define JSONCPP_OVERRIDE override
+#if 0 // Android change: b/170642246
#ifdef __clang__
#if __has_extension(attribute_deprecated_with_message)
#define JSONCPP_DEPRECATED(message) __attribute__((deprecated(message)))
@@ -88,6 +89,7 @@ extern JSON_API int msvc_pre1900_c99_snprintf(char* outBuf, size_t size,
// MSVC)
#define JSONCPP_DEPRECATED(message) __declspec(deprecated(message))
#endif // __clang__ || __GNUC__ || _MSC_VER
+#endif // Android change: b/170642246
#if !defined(JSONCPP_DEPRECATED)
#define JSONCPP_DEPRECATED(message)