patch 9.0.0978: build errors without the +channel feature
Problem: Build errors without the +channel feature. (John Marriott)
Solution: Adjust #ifdefs.
diff --git a/src/globals.h b/src/globals.h
index 0cc7c9b..8fb4340 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -1998,21 +1998,23 @@
# endif
;
-EXTERN int did_repeated_msg INIT(= 0);
-# define REPEATED_MSG_LOOKING 1
-# define REPEATED_MSG_SAFESTATE 2
+// Whether a redraw is needed for appending a line to a buffer.
+EXTERN int channel_need_redraw INIT(= FALSE);
+# define FOR_ALL_CHANNELS(ch) \
+ for ((ch) = first_channel; (ch) != NULL; (ch) = (ch)->ch_next)
+# define FOR_ALL_JOBS(job) \
+ for ((job) = first_job; (job) != NULL; (job) = (job)->jv_next)
+#endif
+
+#ifdef FEAT_EVAL
// This flag is set when outputting a terminal control code and reset in
// out_flush() when characters have been written.
EXTERN int ch_log_output INIT(= FALSE);
-// Whether a redraw is needed for appending a line to a buffer.
-EXTERN int channel_need_redraw INIT(= FALSE);
-
-#define FOR_ALL_CHANNELS(ch) \
- for ((ch) = first_channel; (ch) != NULL; (ch) = (ch)->ch_next)
-#define FOR_ALL_JOBS(job) \
- for ((job) = first_job; (job) != NULL; (job) = (job)->jv_next)
+EXTERN int did_repeated_msg INIT(= 0);
+# define REPEATED_MSG_LOOKING 1
+# define REPEATED_MSG_SAFESTATE 2
#endif
#if defined(FEAT_DIFF)