summaryrefslogtreecommitdiffstats
path: root/gettext-tools/src/msgl-check.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-06-04 15:44:06 +0200
committerBruno Haible <bruno@clisp.org>2011-06-07 23:39:47 +0200
commit3cf31977d683ba9be2e023269a924bf6430df797 (patch)
treed0143e55c60272fe5b4ef0a1549469c77285d04d /gettext-tools/src/msgl-check.c
parent32d358066fff36190c06e1d49c93e3b20ac07c68 (diff)
downloadexternal_gettext-3cf31977d683ba9be2e023269a924bf6430df797.zip
external_gettext-3cf31977d683ba9be2e023269a924bf6430df797.tar.gz
external_gettext-3cf31977d683ba9be2e023269a924bf6430df797.tar.bz2
Update after __attibute__ is no longer defined by gnulib.
Diffstat (limited to 'gettext-tools/src/msgl-check.c')
-rw-r--r--gettext-tools/src/msgl-check.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gettext-tools/src/msgl-check.c b/gettext-tools/src/msgl-check.c
index dea4c2d..017ea0a 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 <drepper@gnu.ai.mit.edu>, 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, ...)
{