2012-12-10 Daniel Colascione <dancol@dancol.org>
+ * w32term.c, keyboard.c: Fix build break in cygw32 by omitting
+ Windows file notification functionality unless WINDOWSNT.
+
* w32gui.h (hprevinst, lpCmdLine, nCmdShow): Remove unused
declarations.
make_number (event->modifiers)));
kbd_fetch_ptr = event + 1;
}
+#endif
+#ifdef WINDOWSNT
else if (event->kind == FILE_NOTIFY_EVENT)
{
/* Make an event (file-notify (DESCRIPTOR ACTION FILE) CALLBACK). */
#ifdef HAVE_NTGUI
DEFSYM (Qlanguage_change, "language-change");
+#endif
+
+#ifdef WINDOWSNT
DEFSYM (Qfile_w32notify, "file-w32notify");
#endif
return retval;
}
+#ifdef WINDOWSNT
/* Put file notifications into the Emacs input event queue. This
function runs when the WM_EMACS_FILENOTIFY message arrives from a
watcher thread. */
/* We've stuffed all the events ourselves, so w32_read_socket shouldn't. */
event->kind = NO_EVENT;
}
+#endif
\f
/* Function to report a mouse movement to the mainstream Emacs code.
check_visibility = 1;
break;
+#ifdef WINDOWSNT
case WM_EMACS_FILENOTIFY:
f = x_window_to_frame (dpyinfo, msg.msg.hwnd);
if (f)
queue_notifications (&inev, &msg, f, &count);
break;
+#endif
default:
/* Check for messages registered at runtime. */