[libnotify] cleanup: Do not use GLIB_CHECK_VERSION



commit 6e871a4047b93f2e2c376e63bcbba0feb993e41f
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Wed Apr 27 20:18:48 2022 +0200

    cleanup: Do not use GLIB_CHECK_VERSION
    
    It's not supported by GLib 2.26.0, the minimum version we required

 libnotify/notify.c   | 2 +-
 tests/test-error.c   | 2 +-
 tests/test-replace.c | 2 +-
 tools/notify-send.c  | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libnotify/notify.c b/libnotify/notify.c
index 7f72972..ce5a97b 100644
--- a/libnotify/notify.c
+++ b/libnotify/notify.c
@@ -161,7 +161,7 @@ notify_init (const char *app_name)
 
         notify_set_app_name (app_name);
 
-#if !GLIB_CHECK_VERSION (2, 36, 0)
+#ifndef GLIB_VERSION_2_36
         g_type_init ();
 #endif
 
diff --git a/tests/test-error.c b/tests/test-error.c
index afcb59b..66d7675 100644
--- a/tests/test-error.c
+++ b/tests/test-error.c
@@ -29,7 +29,7 @@ main ()
 {
         NotifyNotification *n;
 
-#if !GLIB_CHECK_VERSION (2, 36, 0)
+#ifndef GLIB_VERSION_2_36
         g_type_init ();
 #endif
 
diff --git a/tests/test-replace.c b/tests/test-replace.c
index ec7b5fc..5af0c27 100644
--- a/tests/test-replace.c
+++ b/tests/test-replace.c
@@ -28,7 +28,7 @@ main ()
         GError             *error;
         error = NULL;
 
-#if !GLIB_CHECK_VERSION (2, 36, 0)
+#ifndef GLIB_VERSION_2_36
         g_type_init ();
 #endif
 
diff --git a/tools/notify-send.c b/tools/notify-send.c
index 88599bf..6214a40 100644
--- a/tools/notify-send.c
+++ b/tools/notify-send.c
@@ -225,7 +225,7 @@ main (int argc, char *argv[])
 
         setlocale (LC_ALL, "");
 
-#if !GLIB_CHECK_VERSION (2, 36, 0)
+#ifndef GLIB_VERSION_2_36
         g_type_init ();
 #endif
 


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