aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2005-12-06 18:35:10 +0000
committerBruce Momjian <bruce@momjian.us>2005-12-06 18:35:10 +0000
commitca430500ce3f0204d5499a650a3512eb34dc9ebb (patch)
treed8a9be18bfd0e5b4b4e64adf021a5fb79b539caf /src
parent73f47aa0cdccbca29ef99f8e045f8eb5448e2a11 (diff)
downloadpostgresql-ca430500ce3f0204d5499a650a3512eb34dc9ebb.tar.gz
postgresql-ca430500ce3f0204d5499a650a3512eb34dc9ebb.zip
Add documentation on the use of *printf() macros and libintl.
Backpatch to 8.1.X.
Diffstat (limited to 'src')
-rw-r--r--src/include/port.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/include/port.h b/src/include/port.h
index eadf85483be..d89c872a0d2 100644
--- a/src/include/port.h
+++ b/src/include/port.h
@@ -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