[gtk/wip/baedert/for-master: 176/179] build: Unify two if statements




commit 5c48ef9d88d44efb4556c57b1187e2968a6a0f12
Author: Timm Bäder <mail baedert org>
Date:   Fri Sep 4 07:41:01 2020 +0200

    build: Unify two if statements
    
    They both check glib_minor_req.is_odd()

 meson.build | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/meson.build b/meson.build
index aa1b6e5c77..2e9354f847 100644
--- a/meson.build
+++ b/meson.build
@@ -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
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]