mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-08 17:50:10 +00:00
build: Unify two if statements
They both check glib_minor_req.is_odd()
This commit is contained in:
parent
a0422bfe25
commit
40ee7186bf
@ -16,13 +16,9 @@ glib_micro_req = 0
|
||||
|
||||
if glib_minor_req.is_odd()
|
||||
glib_min_required = 'GLIB_VERSION_@0@_@1@'.format(glib_major_req, glib_minor_req - 1)
|
||||
else
|
||||
glib_min_required = 'GLIB_VERSION_@0@_@1@'.format(glib_major_req, glib_minor_req)
|
||||
endif
|
||||
|
||||
if glib_minor_req.is_odd()
|
||||
glib_max_allowed = 'GLIB_VERSION_@0@_@1@'.format(glib_major_req, glib_minor_req + 1)
|
||||
else
|
||||
glib_min_required = 'GLIB_VERSION_@0@_@1@'.format(glib_major_req, glib_minor_req)
|
||||
glib_max_allowed = 'GLIB_VERSION_@0@_@1@'.format(glib_major_req, glib_minor_req)
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user