diff src/optionstr.c @ 28337:1cd053ebb5fc v8.2.4694

patch 8.2.4694: avoidance of #elif causes more preproc nesting Commit: https://github.com/vim/vim/commit/02560424bf838cadc8c19294af6b6b6c383ab291 Author: ichizok <gclient.gaap@gmail.com> Date: Tue Apr 5 14:18:44 2022 +0100 patch 8.2.4694: avoidance of #elif causes more preproc nesting Problem: Avoidance of #elif causes more preproc nesting. Solution: Use #elif where it is useful. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/10081)
author Bram Moolenaar <Bram@vim.org>
date Tue, 05 Apr 2022 15:30:02 +0200
parents ae38d2e81fca
children 8bc8071928ed
line wrap: on
line diff
--- a/src/optionstr.c
+++ b/src/optionstr.c
@@ -949,14 +949,12 @@ ambw_end:
 		|| check_opt_strings(p_wak, p_wak_values, FALSE) != OK)
 	    errmsg = e_invalid_argument;
 # ifdef FEAT_MENU
-#  ifdef FEAT_GUI_MOTIF
+#  if defined(FEAT_GUI_MOTIF)
 	else if (gui.in_use)
 	    gui_motif_set_mnemonics(p_wak[0] == 'y' || p_wak[0] == 'm');
-#  else
-#   ifdef FEAT_GUI_GTK
+#  elif defined(FEAT_GUI_GTK)
 	else if (gui.in_use)
 	    gui_gtk_set_mnemonics(p_wak[0] == 'y' || p_wak[0] == 'm');
-#   endif
 #  endif
 # endif
     }