diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2022-08-25 20:46:58 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2022-08-25 20:46:58 +0200 |
commit | 28ec316787674dd74d00b296724a009b6edc2fb0 (patch) | |
tree | 28b3e010878983f9ef1e90e5911db7a1b15846cb /src/interfaces/libpq/libpq-int.h | |
parent | 66af5eea31e06fac288274cc056357cebbbbefe3 (diff) | |
download | postgresql-28ec316787674dd74d00b296724a009b6edc2fb0.tar.gz postgresql-28ec316787674dd74d00b296724a009b6edc2fb0.zip |
libpq code should use libpq_gettext(), not _()
Fix some wrong use and install a safeguard against future mistakes.
Diffstat (limited to 'src/interfaces/libpq/libpq-int.h')
-rw-r--r-- | src/interfaces/libpq/libpq-int.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/interfaces/libpq/libpq-int.h b/src/interfaces/libpq/libpq-int.h index 1eb752a82da..c75ed63a2c6 100644 --- a/src/interfaces/libpq/libpq-int.h +++ b/src/interfaces/libpq/libpq-int.h @@ -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 |