From 6e871a4047b93f2e2c376e63bcbba0feb993e41f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Wed, 27 Apr 2022 20:18:48 +0200 Subject: [PATCH] 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