diff options
| author | Emmanuele Bassi <ebassi@gnome.org> | 2017-03-18 18:14:52 +0000 |
|---|---|---|
| committer | Emmanuele Bassi <ebassi@gnome.org> | 2017-03-18 18:14:52 +0000 |
| commit | c877dce24e2a9042417eef5f2fc6b990923a1dc6 (patch) | |
| tree | cadb5ccb3a2096b94f5e53f16b5175ac28381b15 /json-glib/json-version-macros.h | |
| parent | 0c19e5b4736667f04d592da0cc717fb68695f54d (diff) | |
| download | json-glib-c877dce24e2a9042417eef5f2fc6b990923a1dc6.tar.gz | |
Add version macros for 1.4
Diffstat (limited to 'json-glib/json-version-macros.h')
| -rw-r--r-- | json-glib/json-version-macros.h | 16 |
1 files changed, 16 insertions, 0 deletions
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__ */ |
