[json-glib] Add version macros for 1.4
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [json-glib] Add version macros for 1.4
- Date: Sat, 18 Mar 2017 18:24:04 +0000 (UTC)
commit c877dce24e2a9042417eef5f2fc6b990923a1dc6
Author: Emmanuele Bassi <ebassi gnome org>
Date: Sat Mar 18 18:14:52 2017 +0000
Add version macros for 1.4
doc/json-glib-sections.txt | 4 ++++
json-glib/json-version-macros.h | 16 ++++++++++++++++
2 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/doc/json-glib-sections.txt b/doc/json-glib-sections.txt
index 970770a..c3152ab 100644
--- a/doc/json-glib-sections.txt
+++ b/doc/json-glib-sections.txt
@@ -333,6 +333,10 @@ JSON_VERSION_1_2
JSON_AVAILABLE_IN_1_2
JSON_DEPRECATED_IN_1_2
JSON_DEPRECATED_IN_1_2_FOR
+JSON_VERSION_1_4
+JSON_AVAILABLE_IN_1_4
+JSON_DEPRECATED_IN_1_4
+JSON_DEPRECATED_IN_1_4_FOR
<SUBSECTION Private>
JSON_ENCODE_VERSION
diff --git a/json-glib/json-version-macros.h b/json-glib/json-version-macros.h
index efba7f4..fdbcea9 100644
--- a/json-glib/json-version-macros.h
+++ b/json-glib/json-version-macros.h
@@ -45,6 +45,8 @@
#define JSON_VERSION_1_2 (G_ENCODE_VERSION (1, 2))
+#define JSON_VERSION_1_4 (G_ENCODE_VERSION (1, 4))
+
/* evaluates to the current stable version; for development cycles,
* this means the next stable target
*/
@@ -148,4 +150,18 @@
# define JSON_AVAILABLE_IN_1_2 _JSON_EXTERN
#endif
+#if JSON_VERSION_MIN_REQUIRED >= JSON_VERSION_1_4
+# define JSON_DEPRECATED_IN_1_4 JSON_DEPRECATED
+# define JSON_DEPRECATED_IN_1_4_FOR(f) JSON_DEPRECATED_FOR(f)
+#else
+# define JSON_DEPRECATED_IN_1_4 _JSON_EXTERN
+# define JSON_DEPRECATED_IN_1_4_FOR(f) _JSON_EXTERN
+#endif
+
+#if JSON_VERSION_MAX_ALLOWED < JSON_VERSION_1_4
+# define JSON_AVAILABLE_IN_1_4 JSON_UNAVAILABLE(1, 4)
+#else
+# define JSON_AVAILABLE_IN_1_4 _JSON_EXTERN
+#endif
+
#endif /* __JSON_VERSION_MACROS_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]