obstack-printf-posix: ensure declaration
authorEric Blake <ebb9@byu.net>
Mon, 8 Feb 2010 22:07:14 +0000 (15:07 -0700)
committerEric Blake <ebb9@byu.net>
Tue, 9 Feb 2010 13:36:46 +0000 (06:36 -0700)
commit1d27f2ae7983295480d2313d3b2a631f9962840a
tree6ef3b7a4dff0fb2cdf928ec8cc3b00f183e1589a
parentc256f62ddde401f8177baa3089735cf647ecefaf
obstack-printf-posix: ensure declaration

The replacement <stdio.h> was failing to declare obstack_printf
if obstack-printf-posix was used in isolation without unit tests.

* m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
extracted from gl_FUNC_OBSTACK_PRINTF.
(gl_FUNC_OBSTACK_PRINTF): Invoke it.
* m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
Likewise.
* lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
0.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/stdio.in.h
m4/obstack-printf-posix.m4
m4/obstack-printf.m4