From: Bruno Haible Date: Sat, 17 Mar 2007 01:44:00 +0000 (+0000) Subject: printf on BeOS, like NetBSD abd Woe32, lacks argument reordering support. X-Git-Tag: v0.17~451 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21a1ce11caafae6ff3ba5e427301ef3c9dc9aa94;p=thirdparty%2Fgettext.git printf on BeOS, like NetBSD abd Woe32, lacks argument reordering support. --- diff --git a/gettext-runtime/intl/ChangeLog b/gettext-runtime/intl/ChangeLog index a0281a765..6eb19566f 100644 --- a/gettext-runtime/intl/ChangeLog +++ b/gettext-runtime/intl/ChangeLog @@ -1,3 +1,9 @@ +2007-03-04 Bruno Haible + + * libgnuintl.h.in (libintl_printf): Treat BeOS like NetBSD and Woe32 + systems. + * printf.c (libintl_printf): Likewise. + 2007-02-25 Bruno Haible * vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a 'a' or diff --git a/gettext-runtime/intl/libgnuintl.h.in b/gettext-runtime/intl/libgnuintl.h.in index 5e1ccd676..22ccb5118 100644 --- a/gettext-runtime/intl/libgnuintl.h.in +++ b/gettext-runtime/intl/libgnuintl.h.in @@ -1,5 +1,5 @@ /* Message catalogs for internationalization. - Copyright (C) 1995-1997, 2000-2006 Free Software Foundation, Inc. + Copyright (C) 1995-1997, 2000-2007 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published @@ -330,7 +330,7 @@ extern int fprintf (FILE *, const char *, ...); extern int vfprintf (FILE *, const char *, va_list); #undef printf -#if defined __NetBSD__ || defined __CYGWIN__ || defined __MINGW32__ +#if defined __NetBSD__ || define __BEOS__ || defined __CYGWIN__ || defined __MINGW32__ /* Don't break __attribute__((format(printf,M,N))). This redefinition is only possible because the libc in NetBSD, Cygwin, mingw does not have a function __printf__. */ diff --git a/gettext-runtime/intl/printf.c b/gettext-runtime/intl/printf.c index 004c66f78..7492808a7 100644 --- a/gettext-runtime/intl/printf.c +++ b/gettext-runtime/intl/printf.c @@ -1,5 +1,5 @@ /* Formatted output to strings, using POSIX/XSI format strings with positions. - Copyright (C) 2003, 2006 Free Software Foundation, Inc. + Copyright (C) 2003, 2006-2007 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software; you can redistribute it and/or modify it @@ -69,7 +69,7 @@ char *alloca (); #define STATIC static /* This needs to be consistent with libgnuintl.h.in. */ -#if defined __NetBSD__ || defined __CYGWIN__ || defined __MINGW32__ +#if defined __NetBSD__ || defined __BEOS__ || defined __CYGWIN__ || defined __MINGW32__ /* Don't break __attribute__((format(printf,M,N))). This redefinition is only possible because the libc in NetBSD, Cygwin, mingw does not have a function __printf__. */ diff --git a/gettext-runtime/m4/ChangeLog b/gettext-runtime/m4/ChangeLog index d29f157c4..de1fd7e49 100644 --- a/gettext-runtime/m4/ChangeLog +++ b/gettext-runtime/m4/ChangeLog @@ -1,3 +1,8 @@ +2007-03-04 Bruno Haible + + * printf-posix.m4 (gt_PRINTF_POSIX): Treat BeOS like NetBSD and Woe32 + systems. + 2007-02-13 Bruno Haible * intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug. diff --git a/gettext-runtime/m4/printf-posix.m4 b/gettext-runtime/m4/printf-posix.m4 index af10170af..33e387c6f 100644 --- a/gettext-runtime/m4/printf-posix.m4 +++ b/gettext-runtime/m4/printf-posix.m4 @@ -1,5 +1,5 @@ -# printf-posix.m4 serial 2 (gettext-0.13.1) -dnl Copyright (C) 2003 Free Software Foundation, Inc. +# printf-posix.m4 serial 3 (gettext-0.16.2) +dnl Copyright (C) 2003, 2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -28,7 +28,7 @@ int main () }], gt_cv_func_printf_posix=yes, gt_cv_func_printf_posix=no, [ AC_EGREP_CPP(notposix, [ -#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ +#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ notposix #endif ], gt_cv_func_printf_posix="guessing no",