summaryrefslogtreecommitdiff
path: root/src/gui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-08-01 13:22:10 +0200
committerBram Moolenaar <Bram@vim.org>2020-08-01 13:22:10 +0200
commitaf50e899e70ee34d5356846afbea7d75701cb22b (patch)
treec913336cad923a4c29c87a977caf46780bda09a3 /src/gui.c
parent4e1d8bd79b87b120bd40afe0eba54a419f8c3aee (diff)
downloadvim-git-af50e899e70ee34d5356846afbea7d75701cb22b.tar.gz
patch 8.2.1336: build failure on non-Unix systemsv8.2.1336
Problem: Build failure on non-Unix systems. Solution: Add #ifdef.
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui.c b/src/gui.c
index e4745547d..5d003a38b 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -5588,7 +5588,10 @@ check_for_interrupt(int key, int modifiers_arg)
int c = merge_modifyOtherKeys(key, &modifiers);
if ((c == Ctrl_C && ctrl_c_interrupts)
- || (intr_char != Ctrl_C && c == intr_char))
+#ifdef UNIX
+ || (intr_char != Ctrl_C && c == intr_char)
+#endif
+ )
{
got_int = TRUE;
return c;