changeset 8581:7600b64d20c8

Take care of IN_LIBINTL situation.
author Bruno Haible <bruno@clisp.org>
date Thu, 29 Mar 2007 22:21:32 +0000
parents 8c17211e9154
children 88177595d847
files ChangeLog lib/asprintf.c lib/vasprintf.c
diffstat 3 files changed, 15 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-03-29  Bruno Haible  <bruno@clisp.org>
+
+	* lib/vasprintf.c [IN_LIBINTL]: Include different specification file.
+	* lib/asprintf.c [IN_LIBINTL]: Likewise.
+
 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
 
 	* m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
--- a/lib/asprintf.c
+++ b/lib/asprintf.c
@@ -18,7 +18,11 @@
 #include <config.h>
 
 /* Specification.  */
-#include <stdio.h>
+#ifdef IN_LIBINTL
+# include "vasprintf.h"
+#else
+# include <stdio.h>
+#endif
 
 #include <stdarg.h>
 
--- a/lib/vasprintf.c
+++ b/lib/vasprintf.c
@@ -18,7 +18,11 @@
 #include <config.h>
 
 /* Specification.  */
-#include <stdio.h>
+#ifdef IN_LIBINTL
+# include "vasprintf.h"
+#else
+# include <stdio.h>
+#endif
 
 #include <errno.h>
 #include <limits.h>