summaryrefslogtreecommitdiff
path: root/src/w32term.h
diff options
context:
space:
mode:
authorKen Brown <kbrown@cornell.edu>2016-03-06 12:08:39 -0500
committerKen Brown <kbrown@cornell.edu>2016-03-06 12:08:39 -0500
commit258f1034d7f451da1c05ef246ca0849d0c0a9c3c (patch)
tree6d0e9b7b535c5aa8cb342bcf55f33b087f01c13a /src/w32term.h
parent69e03ddccf47fc29126317dd3317313ecd92b797 (diff)
downloademacs-258f1034d7f451da1c05ef246ca0849d0c0a9c3c.tar.gz
Fix Cygwin-w32 build
* src/w32fns.c (funhook, setup_w32_kbdhook, remove_w32_kbdhook): Define only if WINDOWSNT, and update all uses accordingly. * src/w32term.h (check_w32_winkey_state, setup_w32_kbdhook) (remove_w32_kbdhook): Declare only if WINDOWSNT. (w32_kbdhook_active): Define as 0 if not WINDOWSNT.
Diffstat (limited to 'src/w32term.h')
-rw-r--r--src/w32term.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/w32term.h b/src/w32term.h
index aed89d8c254..7c23bc43a1f 100644
--- a/src/w32term.h
+++ b/src/w32term.h
@@ -738,11 +738,15 @@ extern int handle_file_notifications (struct input_event *);
extern void w32_initialize_display_info (Lisp_Object);
extern void initialize_w32_display (struct terminal *, int *, int *);
+#ifdef WINDOWSNT
/* Keyboard hooks. */
extern void setup_w32_kbdhook (void);
extern void remove_w32_kbdhook (void);
extern int check_w32_winkey_state (int);
#define w32_kbdhook_active (os_subtype != OS_9X)
+#else
+#define w32_kbdhook_active 0
+#endif
/* Keypad command key support. W32 doesn't have virtual keys defined
for the function keys on the keypad (they are mapped to the standard