mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
libpq code should use libpq_gettext(), not _()
Fix some wrong use and install a safeguard against future mistakes.
This commit is contained in:
@@ -881,6 +881,11 @@ extern char *libpq_ngettext(const char *msgid, const char *msgid_plural, unsigne
|
||||
#define libpq_gettext(x) (x)
|
||||
#define libpq_ngettext(s, p, n) ((n) == 1 ? (s) : (p))
|
||||
#endif
|
||||
/*
|
||||
* libpq code should use the above, not _(), since that would use the
|
||||
* surrounding programs's message catalog.
|
||||
*/
|
||||
#undef _
|
||||
|
||||
/*
|
||||
* These macros are needed to let error-handling code be portable between
|
||||
|
||||
Reference in New Issue
Block a user