diff options
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 dd2ae1c..efba7f4 100644 --- a/json-glib/json-version-macros.h +++ b/json-glib/json-version-macros.h @@ -43,6 +43,8 @@ /* XXX: Each new cycle should add a new version symbol here */ #define JSON_VERSION_1_0 (G_ENCODE_VERSION (1, 0)) +#define JSON_VERSION_1_2 (G_ENCODE_VERSION (1, 2)) + /* evaluates to the current stable version; for development cycles, * this means the next stable target */ @@ -132,4 +134,18 @@ # define JSON_AVAILABLE_IN_1_0 _JSON_EXTERN #endif +#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) +#else +# define JSON_DEPRECATED_IN_1_2 _JSON_EXTERN +# define JSON_DEPRECATED_IN_1_2_FOR(f) _JSON_EXTERN +#endif + +#if JSON_VERSION_MAX_ALLOWED < JSON_VERSION_1_2 +# define JSON_AVAILABLE_IN_1_2 JSON_UNAVAILABLE(1, 2) +#else +# define JSON_AVAILABLE_IN_1_2 _JSON_EXTERN +#endif + #endif /* __JSON_VERSION_MACROS_H__ */ |