summaryrefslogtreecommitdiff
path: root/pango/pango-utils.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-06-28 04:15:40 +0000
committerMatthias Clasen <mclasen@redhat.com>2021-06-28 04:15:40 +0000
commit249615a89cc1594e7c16b5cc5004f63ca9eb36b6 (patch)
treec8d0e13454759394355c16ec94b31d14f3f671f1 /pango/pango-utils.c
parentc463e096e119abb9b65b74c078ee1f2b1aae8c30 (diff)
parent034273de5cbe867348fa687845c8e63dc44a7148 (diff)
downloadpango-249615a89cc1594e7c16b5cc5004f63ca9eb36b6.tar.gz
Merge branch 'test-coverage' into 'master'
Add better attribute test infrastructure See merge request GNOME/pango!346
Diffstat (limited to 'pango/pango-utils.c')
-rw-r--r--pango/pango-utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pango/pango-utils.c b/pango/pango-utils.c
index 0057859e..c90b4c86 100644
--- a/pango/pango-utils.c
+++ b/pango/pango-utils.c
@@ -127,6 +127,8 @@ pango_version_check (int required_major,
gint pango_effective_micro = 100 * PANGO_VERSION_MINOR + PANGO_VERSION_MICRO;
gint required_effective_micro = 100 * required_minor + required_micro;
+ if (required_major > PANGO_VERSION_MAJOR)
+ return "Pango version too old (major mismatch)";
if (required_major < PANGO_VERSION_MAJOR)
return "Pango version too new (major mismatch)";
if (required_effective_micro < pango_effective_micro - PANGO_BINARY_AGE)