mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Add documentation on the use of *printf() macros and libintl.
Backpatch to 8.1.X.
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/port.h,v 1.86 2005/12/06 05:13:46 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/include/port.h,v 1.87 2005/12/06 18:35:10 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -115,8 +115,9 @@ extern unsigned char pg_tolower(unsigned char ch);
|
||||
#ifdef USE_REPL_SNPRINTF
|
||||
|
||||
/*
|
||||
* Some versions of libintl try to replace printf and friends with macros;
|
||||
* if we are doing likewise, make sure our versions win.
|
||||
* Versions of libintl >= 0.13 try to replace printf() and friends with
|
||||
* macros to their own versions that understand the %$ format. We do the
|
||||
* same, so disable their macros, if they exist.
|
||||
*/
|
||||
#ifdef vsnprintf
|
||||
#undef vsnprintf
|
||||
|
Reference in New Issue
Block a user