]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Avoid error with gcc-3.0 and older.
authorBruno Haible <bruno@clisp.org>
Thu, 16 Sep 2004 19:05:31 +0000 (19:05 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:11:55 +0000 (12:11 +0200)
gettext-tools/src/ChangeLog
gettext-tools/src/format.h

index 5b308285109ea06b60b0b57bbe6614d1302db6ec..5d070aa402e831b9b167174d70169f74b7f03457 100644 (file)
@@ -1,3 +1,8 @@
+2004-09-16  Bruno Haible  <bruno@clisp.org>
+
+       * format.h (formatstring_error_logger_t): Modify decl for GCC <= 3.0.
+       Reported by Jens A. Tkotz <jens@peino.de>.
+
 2004-09-11  Bruno Haible  <bruno@clisp.org>
 
        * Makefile.am (msginit_SOURCES): Add plural-count.c.
index 03cf968194b2de086cc60abcd819fded15ad71c0..cbd9f57d15ec4ccb6886e820278749938be455f0 100644 (file)
@@ -32,9 +32,11 @@ extern "C" {
 
 
 /* This type of callback is responsible for showing an error.  */
-typedef void formatstring_error_logger_fn (const char *format, ...)
-     __attribute__ ((__format__ (__printf__, 1, 2)));
-typedef formatstring_error_logger_fn *formatstring_error_logger_t;
+typedef void (*formatstring_error_logger_t) (const char *format, ...)
+#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
+     __attribute__ ((__format__ (__printf__, 1, 2)))
+#endif
+;
 
 /* This structure describes a format string parser for a language.  */
 struct formatstring_parser