mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
NLS for libpq. Clean up the message formats and change the documentation
accordingly.
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: libpq-int.h,v 1.35 2001/07/06 19:04:23 petere Exp $
|
||||
* $Id: libpq-int.h,v 1.36 2001/07/15 13:45:04 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -343,4 +343,14 @@ extern int pqWriteReady(PGconn *conn);
|
||||
*/
|
||||
#define pqIsnonblocking(conn) ((conn)->nonblocking)
|
||||
|
||||
#ifdef ENABLE_NLS
|
||||
extern char * libpq_gettext(const char *msgid)
|
||||
#ifdef __GNUC__
|
||||
__attribute__((format_arg(1)))
|
||||
#endif
|
||||
;
|
||||
#else
|
||||
#define libpq_gettext(x) (x)
|
||||
#endif
|
||||
|
||||
#endif /* LIBPQ_INT_H */
|
||||
|
Reference in New Issue
Block a user