diff options
Diffstat (limited to 'json-glib')
| -rw-r--r-- | json-glib/json-version.h.in | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/json-glib/json-version.h.in b/json-glib/json-version.h.in index c46ff49..d18caa2 100644 --- a/json-glib/json-version.h.in +++ b/json-glib/json-version.h.in @@ -67,20 +67,22 @@ /** * JSON_VERSION_S: * - * Json version, encoded as a string, useful for printing and + * JSON-GLib version, encoded as a string, useful for printing and * concatenation. */ #define JSON_VERSION_S "@JSON_VERSION@" +#define JSON_ENCODE_VERSION(major,minor,micro) \ + ((major) << 24 | (minor) << 16 | (micro) << 8) + /** * JSON_VERSION_HEX: * - * Json version, encoded as an hexadecimal number, useful for + * JSON-GLib version, encoded as an hexadecimal number, useful for * integer comparisons. */ -#define JSON_VERSION_HEX (JSON_MAJOR_VERSION << 24 | \ - JSON_MINOR_VERSION << 16 | \ - JSON_MICRO_VERSION << 8) +#define JSON_VERSION_HEX \ + (JSON_ENCODE_VERSION (JSON_MAJOR_VERSION, JSON_MINOR_VERSION, JSON_MICRO_VERSION)) /** * JSON_CHECK_VERSION: |
