summaryrefslogtreecommitdiff
path: root/src/blockinput.h
diff options
context:
space:
mode:
authorAdrian Robert <Adrian.B.Robert@gmail.com>2008-07-15 18:15:18 +0000
committerAdrian Robert <Adrian.B.Robert@gmail.com>2008-07-15 18:15:18 +0000
commit44fbaf8dbf48607a410eb71044934b90b84d9f23 (patch)
tree7d4ed52d5d577cd447fb5134be07fde184f493f4 /src/blockinput.h
parent691e329080abb159f73cef723912a41e0169c6d8 (diff)
downloademacs-44fbaf8dbf48607a410eb71044934b90b84d9f23.tar.gz
merging Emacs.app (NeXTstep port)
Diffstat (limited to 'src/blockinput.h')
-rw-r--r--src/blockinput.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/blockinput.h b/src/blockinput.h
index bcf8d17e870..fb338d9df49 100644
--- a/src/blockinput.h
+++ b/src/blockinput.h
@@ -59,6 +59,16 @@ extern int interrupt_input_pending;
extern int pending_atimers;
+#if defined HAVE_NS && !defined COCOA_EXPERIMENTAL_CTRL_G
+/* NS does not use interrupt-driven input processing (yet), so this is
+ unneeded and moreover was causing problems. */
+#define BLOCK_INPUT
+#define UNBLOCK_INPUT
+#define TOTALLY_UNBLOCK_INPUT
+#define UNBLOCK_INPUT_TO(LEVEL)
+
+#else
+
/* Begin critical section. */
#define BLOCK_INPUT (interrupt_input_blocked++)
@@ -115,6 +125,8 @@ extern int pending_atimers;
} \
while (0)
+#endif /* defined HAVE_NS && !defined COCOA_EXPERIMENTAL_CTRL_G */
+
#define UNBLOCK_INPUT_RESIGNAL UNBLOCK_INPUT
/* In critical section ? */