Skip to content

Commit 0406fcf

Browse files
committed
Fix unnecessary ifdef when dealing with gettext
When adding support for gettext in #1070, a MacVim-specific ifdef was added unnecessary around `bindtextdomain`. That ifdef isn't actually necessary and it seems to have been done due to an incorrect understanding of the ifdef logic there regarding `FEAT_GETTEXT`. Just remove it to clean it up. Localization should still work.
1 parent b258c88 commit 0406fcf

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/vim.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -571,11 +571,6 @@ extern int (*dyn_libintl_wputenv)(const wchar_t *envstring);
571571
# define _(x) ((char *)(x))
572572
# define NGETTEXT(x, xs, n) (((n) == 1) ? (char *)(x) : (char *)(xs))
573573
# define N_(x) x
574-
#ifdef FEAT_GUI_MACVIM
575-
// In MacVim, we want bindtextdomain to work because we bundle the locale
576-
// files in runtime dir instead of a global install loation. This is
577-
// similar to Windows (which has DYNAMIC_GETTEXT set).
578-
#else
579574
# ifdef bindtextdomain
580575
# undef bindtextdomain
581576
# endif
@@ -588,7 +583,6 @@ extern int (*dyn_libintl_wputenv)(const wchar_t *envstring);
588583
# undef textdomain
589584
# endif
590585
# define textdomain(x) // empty
591-
#endif // MacVim
592586
#endif
593587

594588
/*

0 commit comments

Comments
 (0)