mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Fix notification support check for cygwin
This commit is contained in:
parent
5d86e57cf9
commit
651d5aaaf0
19
src/main.c
19
src/main.c
@ -107,17 +107,24 @@ main(int argc, char **argv)
|
|||||||
g_print("\n");
|
g_print("\n");
|
||||||
|
|
||||||
g_print("Build information:\n");
|
g_print("Build information:\n");
|
||||||
|
|
||||||
|
gboolean notify_enabled = FALSE;
|
||||||
|
|
||||||
#ifdef HAVE_OSXNOTIFY
|
#ifdef HAVE_OSXNOTIFY
|
||||||
g_print("Desktop notification support: Enabled\n");
|
notify_enabled = TRUE;
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_LIBNOTIFY
|
#ifdef HAVE_LIBNOTIFY
|
||||||
|
notify_enabled = TRUE;
|
||||||
|
#endif
|
||||||
|
#ifdef PLATFORM_CYGWIN
|
||||||
|
notify_enabled = TRUE;
|
||||||
|
#endif
|
||||||
|
if (notify_enabled) {
|
||||||
g_print("Desktop notification support: Enabled\n");
|
g_print("Desktop notification support: Enabled\n");
|
||||||
#endif
|
} else {
|
||||||
#ifndef HAVE_OSXNOTIFY
|
|
||||||
#ifndef HAVE_LIBNOTIFY
|
|
||||||
g_print("Desktop notification support: Disabled\n");
|
g_print("Desktop notification support: Disabled\n");
|
||||||
#endif
|
}
|
||||||
#endif
|
|
||||||
#ifdef HAVE_LIBOTR
|
#ifdef HAVE_LIBOTR
|
||||||
g_print("OTR support: Enabled\n");
|
g_print("OTR support: Enabled\n");
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user