]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix compilation error with gcc < 3.1.
authorBruno Haible <bruno@clisp.org>
Mon, 23 Oct 2006 11:21:03 +0000 (11:21 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:14:11 +0000 (12:14 +0200)
gettext-tools/src/ChangeLog
gettext-tools/src/po-error.h

index 362decd9752d5f5a167412234cbbd7cf368c002b..1cbeab2dd9a7898919e6074cf042ab647e9278db 100644 (file)
@@ -1,3 +1,8 @@
+2006-10-21  Bruno Haible  <bruno@clisp.org>
+
+       * po-error.h (po_error, po_error_at_line): Use format attribute only
+       with gcc >= 3.1.
+
 2006-10-21  Bruno Haible  <bruno@clisp.org>
 
        * msgmerge.c (struct definitions_ty): Use gl_lock_define to declare
index 71e6a14250ae57bb297d3d060d16d40260b9f551..4db909a301f1c2e52703766f0a397ad375e2ad5c 100644 (file)
@@ -46,12 +46,18 @@ extern "C" {
 extern DLL_VARIABLE
        void (*po_error) (int status, int errnum,
                         const char *format, ...)
-       __attribute__ ((__format__ (__printf__, 3, 4)));
+#if (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) || __GNUC__ > 3
+       __attribute__ ((__format__ (__printf__, 3, 4)))
+#endif
+       ;
 extern DLL_VARIABLE
        void (*po_error_at_line) (int status, int errnum,
                                 const char *filename, unsigned int lineno,
                                 const char *format, ...)
-       __attribute__ ((__format__ (__printf__, 5, 6)));
+#if (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) || __GNUC__ > 3
+       __attribute__ ((__format__ (__printf__, 5, 6)))
+#endif
+       ;
 
 /* Both functions must work like the xerror.h multiline_warning(),
    multiline_error() functions.  In particular,