]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Update after __attibute__ is no longer defined by gnulib.
authorBruno Haible <bruno@clisp.org>
Sat, 4 Jun 2011 13:44:06 +0000 (15:44 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 7 Jun 2011 21:39:47 +0000 (23:39 +0200)
gettext-tools/src/ChangeLog
gettext-tools/src/msgl-check.c

index 41dfb502fa51976c3b2f6922b4c404c3f38f36a9..3b3bb5d88ddb0ba2ff0ef95716c78ba3df4e4901 100644 (file)
@@ -1,3 +1,9 @@
+2011-06-04  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        Use u8_mbtoucr instead of u8_mbtouc in some places.
index dea4c2dfbe8ddc9c68bd2a5d84a54588c4af9de9..017ea0a6ff07158128813d314811ca5058afcb42 100644 (file)
@@ -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, ...)
 {