aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2005-12-06 18:35:36 +0000
committerBruce Momjian <bruce@momjian.us>2005-12-06 18:35:36 +0000
commit42860677a486d444b4123da7c453cf79684192f2 (patch)
treeab8ab616cf1ca4ccc12c895a391f2a582ca51724 /src/include
parent3482b4597ec0f8119e3e03c37994466102ce6211 (diff)
downloadpostgresql-42860677a486d444b4123da7c453cf79684192f2.tar.gz
postgresql-42860677a486d444b4123da7c453cf79684192f2.zip
Add documentation on the use of *printf() macros and libintl.
Backpatch to 8.1.X.
Diffstat (limited to 'src/include')
-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 9de96f1eaf6..13885c74b76 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.84.2.2 2005/12/06 05:13:56 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/port.h,v 1.84.2.3 2005/12/06 18:35:36 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