drop USE_GETTEXT macro and use only HAVE_GETTEXT

There is no clear rationale for the two separate macros.
This commit is contained in:
David Adam 2017-11-16 21:29:42 +08:00
parent fa57565c42
commit ea5f3925ea

View File

@ -58,7 +58,7 @@
/// The special cased translation macro for completions. The empty string needs to be special cased,
/// since it can occur, and should not be translated. (Gettext returns the version information as
/// the response).
#ifdef USE_GETTEXT
#ifdef HAVE_GETTEXT
static const wchar_t *C_(const wcstring &s) {
return s.empty() ? L"" : wgettext(s.c_str()).c_str();
}