+2001-10-09 Bruno Haible <haible@clisp.cons.org>
+
+ * configure.in: Also check for putc_unlocked.
+
2001-10-21 Bruno Haible <haible@clisp.cons.org>
* Makefile.am (SUBDIRS): Add projects.
dnl Checks for library functions.
AC_FUNC_ALLOCA
AC_FUNC_VPRINTF
-AC_CHECK_FUNCS([getcwd mblen memcpy posix_spawn raise select strerror uname \
-utime utimes])
+AC_CHECK_FUNCS([getcwd mblen memcpy posix_spawn putc_unlocked raise select \
+strerror uname utime utimes])
AC_REPLACE_FUNCS([memset stpcpy stpncpy strcspn \
strcasecmp strncasecmp strpbrk strstr strtoul vasprintf])
AM_FUNC_GETLINE
+2001-10-09 Bruno Haible <haible@clisp.cons.org>
+
+ * write-po.c (putc): Define as putc_unlocked if available.
+
2001-10-09 Bruno Haible <haible@clisp.cons.org>
* po-lex.c (getc): Define as getc_unlocked if available.
#include "xerror.h"
#include "libgettext.h"
-
/* Our regular abbreviation. */
#define _(str) gettext (str)
+#ifdef HAVE_PUTC_UNLOCKED
+# undef putc
+# define putc putc_unlocked
+#endif
+
/* Prototypes for local functions. Needed to ensure compiler checking of
function argument counts despite of K&R C function definition syntax. */