]> granicus.if.org Git - vim/commitdiff
patch 8.0.1350: cannot build with +eval and -multi_byte v8.0.1350
authorBram Moolenaar <Bram@vim.org>
Mon, 27 Nov 2017 21:49:01 +0000 (22:49 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 27 Nov 2017 21:49:01 +0000 (22:49 +0100)
Problem:    Cannot build with +eval and -multi_byte.
Solution:   Adjust #ifdefs. (John Marriott)  Always include the multi_byte
            feature when an input method feature is enabled.

src/feature.h
src/mbyte.c
src/version.c

index 6bc56c2cd053d9536f0589d4e918c49edf770311..a0b0f7e1d4bdcacee836620f58a942d94a2abfd6 100644 (file)
 /* #define FEAT_MBYTE_IME */
 # endif
 
-#if defined(FEAT_MBYTE_IME) && !defined(FEAT_MBYTE)
+/* Input methods are only useful with +multi_byte. */
+#if (defined(FEAT_MBYTE_IME) || defined(FEAT_XIM)) && !defined(FEAT_MBYTE)
 # define FEAT_MBYTE
 #endif
 
index 408c49ad7920c8fd03a584de638854a06c569fa2..742c220df9534d2dfcfc7950fcb175009cca1830 100644 (file)
@@ -4790,7 +4790,7 @@ iconv_end(void)
 # define USE_IMSTATUSFUNC (*p_imsf != NUL)
 #endif
 
-#ifdef FEAT_EVAL
+#if defined(FEAT_EVAL) && defined(FEAT_MBYTE)
     static void
 call_imactivatefunc(int active)
 {
@@ -6486,7 +6486,7 @@ static int im_was_set_active = FALSE;
     int
 im_get_status()
 {
-#  ifdef FEAT_EVAL
+#  if defined(FEAT_MBYTE) && defined(FEAT_EVAL)
     if (USE_IMSTATUSFUNC)
        return call_imstatusfunc();
 #  endif
index d44289ace89587ed76dd13de5761f9a21be3ae7e..066294a50f9c5b31c90fb776ee4e40625a995e8d 100644 (file)
@@ -771,6 +771,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1350,
 /**/
     1349,
 /**/