From f5ca7696d853e33c2f58505807aa738f4d724542 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 17 Sep 2003 16:11:10 +0000 Subject: [PATCH] Portability to cygwin. --- gettext-runtime/m4/ChangeLog | 9 +++++++++ gettext-runtime/m4/gettext.m4 | 8 ++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/gettext-runtime/m4/ChangeLog b/gettext-runtime/m4/ChangeLog index 6f9ccf1a8..91cfe7f07 100644 --- a/gettext-runtime/m4/ChangeLog +++ b/gettext-runtime/m4/ChangeLog @@ -1,3 +1,12 @@ +2003-09-17 Bruno Haible + + * gettext.m4 (AM_INTL_SUBDIR): Test for fwprintf, not wprintf. Needed + because cygwin-1.3.22 has a broken definition of wprintf in + winsup/cygwin/syscalls.cc and lacks 1. the declaration of this function + and 2. the other wide-char I/O functions fwprintf, fwscanf, wprintf, + wscanf, swprintf, swscanf, vfwprintf, vwprintf, vwsprintf, fgetwc, + fgetwc, fputwc, fputws, getwc, getwchar, putwc, putwchar, ungetwc. + 2003-08-29 Bruno Haible * gettext.m4 (AM_INTL_SUBDIR): Test whether _snprintf and _snwprintf diff --git a/gettext-runtime/m4/gettext.m4 b/gettext-runtime/m4/gettext.m4 index ab9d10fba..94bdef2b8 100644 --- a/gettext-runtime/m4/gettext.m4 +++ b/gettext-runtime/m4/gettext.m4 @@ -1,4 +1,4 @@ -# gettext.m4 serial 25 (gettext-0.12.2) +# gettext.m4 serial 26 (gettext-0.12.2) dnl Copyright (C) 1995-2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General @@ -377,9 +377,9 @@ AC_DEFUN([AM_INTL_SUBDIR], AC_CHECK_TYPES([ptrdiff_t]) AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ stdlib.h string.h unistd.h sys/param.h]) - AC_CHECK_FUNCS([asprintf getcwd getegid geteuid getgid getuid mempcpy \ -munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup strtoul \ -tsearch wcslen wprintf __argz_count __argz_stringify __argz_next \ + AC_CHECK_FUNCS([asprintf fwprintf getcwd getegid geteuid getgid getuid \ +mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ +strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ __fsetlocking]) dnl Use the _snprintf function only if it is declared (because on NetBSD it -- 2.47.2