diff options
| author | Eli Zaretskii | 2015-11-13 11:02:04 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2015-11-13 11:02:04 +0200 |
| commit | d60ed3f33aae3719828dfb515bc9a16570461dd4 (patch) | |
| tree | a82a491959bacceca20a2410a70308dbc25e5b46 /src | |
| parent | 805a39bcc94d143b0e60e5cd894cdad32af376c3 (diff) | |
| download | emacs-d60ed3f33aae3719828dfb515bc9a16570461dd4.tar.gz emacs-d60ed3f33aae3719828dfb515bc9a16570461dd4.zip | |
Another fix for MinGW64 and Cygwin builds due to notifications
* src/w32fns.c: Ifdef away tray notification code if D-Bus is
being compiled into Emacs.
(syms_of_w32fns) [WINDOWSNT && !HAVE_DBUS]: Don't defsubr
Sw32_notification_notify and Sw32_notification_close if the code
is not compiled. Reported by Andy Moreton <andrewjmoreton@gmail.com>.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32fns.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/w32fns.c b/src/w32fns.c index b71002f8bfc..475864bb45b 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -8756,7 +8756,7 @@ Internal use only. */) | |||
| 8756 | return menubar_in_use ? Qt : Qnil; | 8756 | return menubar_in_use ? Qt : Qnil; |
| 8757 | } | 8757 | } |
| 8758 | 8758 | ||
| 8759 | #ifndef __CYGWIN__ | 8759 | #if defined WINDOWSNT && !defined HAVE_DBUS |
| 8760 | 8760 | ||
| 8761 | /*********************************************************************** | 8761 | /*********************************************************************** |
| 8762 | Tray notifications | 8762 | Tray notifications |
| @@ -9219,7 +9219,7 @@ DEFUN ("w32-notification-close", | |||
| 9219 | return Qnil; | 9219 | return Qnil; |
| 9220 | } | 9220 | } |
| 9221 | 9221 | ||
| 9222 | #endif /* !__CYGWIN__ */ | 9222 | #endif /* WINDOWSNT && !HAVE_DBUS */ |
| 9223 | 9223 | ||
| 9224 | 9224 | ||
| 9225 | /*********************************************************************** | 9225 | /*********************************************************************** |
| @@ -9635,8 +9635,10 @@ This variable has effect only on Windows Vista and later. */); | |||
| 9635 | defsubr (&Sw32_window_exists_p); | 9635 | defsubr (&Sw32_window_exists_p); |
| 9636 | defsubr (&Sw32_battery_status); | 9636 | defsubr (&Sw32_battery_status); |
| 9637 | defsubr (&Sw32__menu_bar_in_use); | 9637 | defsubr (&Sw32__menu_bar_in_use); |
| 9638 | #if defined WINDOWSNT && !defined HAVE_DBUS | ||
| 9638 | defsubr (&Sw32_notification_notify); | 9639 | defsubr (&Sw32_notification_notify); |
| 9639 | defsubr (&Sw32_notification_close); | 9640 | defsubr (&Sw32_notification_close); |
| 9641 | #endif | ||
| 9640 | 9642 | ||
| 9641 | #ifdef WINDOWSNT | 9643 | #ifdef WINDOWSNT |
| 9642 | defsubr (&Sfile_system_info); | 9644 | defsubr (&Sfile_system_info); |