diff options
author | James Booth <boothj5@gmail.com> | 2014-08-10 01:20:42 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-08-10 01:20:42 +0100 |
commit | 651d5aaaf0888ad7e7c840cb012c58973f742425 (patch) | |
tree | a10675559ce00b913812fe73cf6f4ad08a6014c8 /src/main.c | |
parent | 5d86e57cf984fa23688d038a6ffa257f4d81c5fc (diff) | |
download | profani-tty-651d5aaaf0888ad7e7c840cb012c58973f742425.tar.gz |
Fix notification support check for cygwin
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c index 39a39e26..222b1361 100644 --- a/src/main.c +++ b/src/main.c @@ -107,17 +107,24 @@ main(int argc, char **argv) g_print("\n"); g_print("Build information:\n"); + + gboolean notify_enabled = FALSE; + #ifdef HAVE_OSXNOTIFY - g_print("Desktop notification support: Enabled\n"); + notify_enabled = TRUE; #endif #ifdef HAVE_LIBNOTIFY - g_print("Desktop notification support: Enabled\n"); -#endif -#ifndef HAVE_OSXNOTIFY -#ifndef HAVE_LIBNOTIFY - g_print("Desktop notification support: Disabled\n"); + notify_enabled = TRUE; #endif +#ifdef PLATFORM_CYGWIN + notify_enabled = TRUE; #endif + if (notify_enabled) { + g_print("Desktop notification support: Enabled\n"); + } else { + g_print("Desktop notification support: Disabled\n"); + } + #ifdef HAVE_LIBOTR g_print("OTR support: Enabled\n"); #else |