aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Colascione2012-12-10 12:46:20 -0800
committerDaniel Colascione2012-12-10 12:46:20 -0800
commit8db4b52f05b67a470b466880e708e2284d6627c4 (patch)
tree2942198cf63971b025af9b77e68538c7683f47b9 /src
parentc868b91923f344c5e0e3be990da49643068500c1 (diff)
downloademacs-8db4b52f05b67a470b466880e708e2284d6627c4.tar.gz
emacs-8db4b52f05b67a470b466880e708e2284d6627c4.zip
Fix cygw32 build break
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog3
-rw-r--r--src/keyboard.c5
-rw-r--r--src/w32term.c4
3 files changed, 12 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 8df51058840..96e7f152725 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12012-12-10 Daniel Colascione <dancol@dancol.org> 12012-12-10 Daniel Colascione <dancol@dancol.org>
2 2
3 * w32term.c, keyboard.c: Fix build break in cygw32 by omitting
4 Windows file notification functionality unless WINDOWSNT.
5
3 * w32gui.h (hprevinst, lpCmdLine, nCmdShow): Remove unused 6 * w32gui.h (hprevinst, lpCmdLine, nCmdShow): Remove unused
4 declarations. 7 declarations.
5 8
diff --git a/src/keyboard.c b/src/keyboard.c
index ecf1551622f..e3dcb8a438e 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -3909,6 +3909,8 @@ kbd_buffer_get_event (KBOARD **kbp,
3909 make_number (event->modifiers))); 3909 make_number (event->modifiers)));
3910 kbd_fetch_ptr = event + 1; 3910 kbd_fetch_ptr = event + 1;
3911 } 3911 }
3912#endif
3913#ifdef WINDOWSNT
3912 else if (event->kind == FILE_NOTIFY_EVENT) 3914 else if (event->kind == FILE_NOTIFY_EVENT)
3913 { 3915 {
3914 /* Make an event (file-notify (DESCRIPTOR ACTION FILE) CALLBACK). */ 3916 /* Make an event (file-notify (DESCRIPTOR ACTION FILE) CALLBACK). */
@@ -11361,6 +11363,9 @@ syms_of_keyboard (void)
11361 11363
11362#ifdef HAVE_NTGUI 11364#ifdef HAVE_NTGUI
11363 DEFSYM (Qlanguage_change, "language-change"); 11365 DEFSYM (Qlanguage_change, "language-change");
11366#endif
11367
11368#ifdef WINDOWSNT
11364 DEFSYM (Qfile_w32notify, "file-w32notify"); 11369 DEFSYM (Qfile_w32notify, "file-w32notify");
11365#endif 11370#endif
11366 11371
diff --git a/src/w32term.c b/src/w32term.c
index d7c5d075416..7c53097e313 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -3244,6 +3244,7 @@ lispy_file_action (DWORD action)
3244 return retval; 3244 return retval;
3245} 3245}
3246 3246
3247#ifdef WINDOWSNT
3247/* Put file notifications into the Emacs input event queue. This 3248/* Put file notifications into the Emacs input event queue. This
3248 function runs when the WM_EMACS_FILENOTIFY message arrives from a 3249 function runs when the WM_EMACS_FILENOTIFY message arrives from a
3249 watcher thread. */ 3250 watcher thread. */
@@ -3320,6 +3321,7 @@ queue_notifications (struct input_event *event, W32Msg *msg, struct frame *f,
3320 /* We've stuffed all the events ourselves, so w32_read_socket shouldn't. */ 3321 /* We've stuffed all the events ourselves, so w32_read_socket shouldn't. */
3321 event->kind = NO_EVENT; 3322 event->kind = NO_EVENT;
3322} 3323}
3324#endif
3323 3325
3324 3326
3325/* Function to report a mouse movement to the mainstream Emacs code. 3327/* Function to report a mouse movement to the mainstream Emacs code.
@@ -4954,11 +4956,13 @@ w32_read_socket (struct terminal *terminal,
4954 check_visibility = 1; 4956 check_visibility = 1;
4955 break; 4957 break;
4956 4958
4959#ifdef WINDOWSNT
4957 case WM_EMACS_FILENOTIFY: 4960 case WM_EMACS_FILENOTIFY:
4958 f = x_window_to_frame (dpyinfo, msg.msg.hwnd); 4961 f = x_window_to_frame (dpyinfo, msg.msg.hwnd);
4959 if (f) 4962 if (f)
4960 queue_notifications (&inev, &msg, f, &count); 4963 queue_notifications (&inev, &msg, f, &count);
4961 break; 4964 break;
4965#endif
4962 4966
4963 default: 4967 default:
4964 /* Check for messages registered at runtime. */ 4968 /* Check for messages registered at runtime. */