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