From 3cf31977d683ba9be2e023269a924bf6430df797 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 4 Jun 2011 15:44:06 +0200 Subject: [PATCH] Update after __attibute__ is no longer defined by gnulib. --- gettext-tools/src/ChangeLog | 6 ++++++ gettext-tools/src/msgl-check.c | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog index 41dfb502f..3b3bb5d88 100644 --- a/gettext-tools/src/ChangeLog +++ b/gettext-tools/src/ChangeLog @@ -1,3 +1,9 @@ +2011-06-04 Bruno Haible + + Update after __attibute__ is no longer defined by gnulib. + * msgl-check.c (formatstring_error_logger): Use __attribute__ only with + compiler versions that support it. + 2011-06-02 Bruno Haible Use u8_mbtoucr instead of u8_mbtouc in some places. diff --git a/gettext-tools/src/msgl-check.c b/gettext-tools/src/msgl-check.c index dea4c2dfb..017ea0a6f 100644 --- a/gettext-tools/src/msgl-check.c +++ b/gettext-tools/src/msgl-check.c @@ -1,5 +1,5 @@ /* Checking of messages in PO files. - Copyright (C) 1995-1998, 2000-2008, 2010 Free Software Foundation, Inc. + Copyright (C) 1995-1998, 2000-2008, 2010-2011 Free Software Foundation, Inc. Written by Ulrich Drepper , April 1995. This program is free software: you can redistribute it and/or modify @@ -544,7 +544,10 @@ static const message_ty *curr_mp; static lex_pos_ty curr_msgid_pos; static void formatstring_error_logger (const char *format, ...) - __attribute__ ((__format__ (__printf__, 1, 2))); +#if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 7) || __GNUC__ > 2) + __attribute__ ((__format__ (__printf__, 1, 2))) +#endif +; static void formatstring_error_logger (const char *format, ...) { -- 2.47.3