diff options
| author | Emmanuele Bassi <ebassi@gnome.org> | 2017-11-14 15:59:31 +0000 |
|---|---|---|
| committer | Emmanuele Bassi <ebassi@gnome.org> | 2017-11-14 15:59:31 +0000 |
| commit | ce0f83a46317482255e5e6afe9b9d57422c6bffb (patch) | |
| tree | cfe23bfe4c87cfccd0bddfdd379e49a3f52f3396 /json-glib/json-version-macros.h | |
| parent | 0ec1a23b53e591a1446b68ed51a4ad95d7d4593f (diff) | |
| download | json-glib-ce0f83a46317482255e5e6afe9b9d57422c6bffb.tar.gz | |
Open the development cycle towards 1.6
Diffstat (limited to 'json-glib/json-version-macros.h')
| -rw-r--r-- | json-glib/json-version-macros.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/json-glib/json-version-macros.h b/json-glib/json-version-macros.h index fdbcea9..c1c269c 100644 --- a/json-glib/json-version-macros.h +++ b/json-glib/json-version-macros.h @@ -47,6 +47,8 @@ #define JSON_VERSION_1_4 (G_ENCODE_VERSION (1, 4)) +#define JSON_VERSION_1_6 (G_ENCODE_VERSION (1, 6)) + /* evaluates to the current stable version; for development cycles, * this means the next stable target */ @@ -122,6 +124,7 @@ /* XXX: Every new stable minor release should add a set of macros here */ +/* 1.0 */ #if JSON_VERSION_MIN_REQUIRED >= JSON_VERSION_1_0 # define JSON_DEPRECATED_IN_1_0 JSON_DEPRECATED # define JSON_DEPRECATED_IN_1_0_FOR(f) JSON_DEPRECATED_FOR(f) @@ -136,6 +139,7 @@ # define JSON_AVAILABLE_IN_1_0 _JSON_EXTERN #endif +/* 1.2 */ #if JSON_VERSION_MIN_REQUIRED >= JSON_VERSION_1_2 # define JSON_DEPRECATED_IN_1_2 JSON_DEPRECATED # define JSON_DEPRECATED_IN_1_2_FOR(f) JSON_DEPRECATED_FOR(f) @@ -150,6 +154,7 @@ # define JSON_AVAILABLE_IN_1_2 _JSON_EXTERN #endif +/* 1.4 */ #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) @@ -164,4 +169,19 @@ # define JSON_AVAILABLE_IN_1_4 _JSON_EXTERN #endif +/* 1.6 */ +#if JSON_VERSION_MIN_REQUIRED >= JSON_VERSION_1_6 +# define JSON_DEPRECATED_IN_1_6 JSON_DEPRECATED +# define JSON_DEPRECATED_IN_1_6_FOR(f) JSON_DEPRECATED_FOR(f) +#else +# define JSON_DEPRECATED_IN_1_6 _JSON_EXTERN +# define JSON_DEPRECATED_IN_1_6_FOR(f) _JSON_EXTERN +#endif + +#if JSON_VERSION_MAX_ALLOWED < JSON_VERSION_1_6 +# define JSON_AVAILABLE_IN_1_6 JSON_UNAVAILABLE(1, 6) +#else +# define JSON_AVAILABLE_IN_1_6 _JSON_EXTERN +#endif + #endif /* __JSON_VERSION_MACROS_H__ */ |
