diff options
Diffstat (limited to 'src/blockinput.h')
| -rw-r--r-- | src/blockinput.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/blockinput.h b/src/blockinput.h index 6dc22c6f5dd..8f1b1e18985 100644 --- a/src/blockinput.h +++ b/src/blockinput.h | |||
| @@ -20,9 +20,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 20 | #define EMACS_BLOCKINPUT_H | 20 | #define EMACS_BLOCKINPUT_H |
| 21 | 21 | ||
| 22 | INLINE_HEADER_BEGIN | 22 | INLINE_HEADER_BEGIN |
| 23 | #ifndef BLOCKINPUT_INLINE | ||
| 24 | # define BLOCKINPUT_INLINE INLINE | ||
| 25 | #endif | ||
| 26 | 23 | ||
| 27 | /* Emacs should avoid doing anything hairy in a signal handler, because | 24 | /* Emacs should avoid doing anything hairy in a signal handler, because |
| 28 | so many system functions are non-reentrant. For example, malloc | 25 | so many system functions are non-reentrant. For example, malloc |
| @@ -52,7 +49,7 @@ extern volatile int interrupt_input_blocked; | |||
| 52 | 49 | ||
| 53 | /* Begin critical section. */ | 50 | /* Begin critical section. */ |
| 54 | 51 | ||
| 55 | BLOCKINPUT_INLINE void | 52 | INLINE void |
| 56 | block_input (void) | 53 | block_input (void) |
| 57 | { | 54 | { |
| 58 | interrupt_input_blocked++; | 55 | interrupt_input_blocked++; |
| @@ -64,7 +61,7 @@ extern void unblock_input_to (int); | |||
| 64 | 61 | ||
| 65 | /* In critical section ? */ | 62 | /* In critical section ? */ |
| 66 | 63 | ||
| 67 | BLOCKINPUT_INLINE bool | 64 | INLINE bool |
| 68 | input_blocked_p (void) | 65 | input_blocked_p (void) |
| 69 | { | 66 | { |
| 70 | return interrupt_input_blocked > 0; | 67 | return interrupt_input_blocked > 0; |