]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix compilation error on MSVC.
authorBruno Haible <bruno@clisp.org>
Mon, 5 Aug 2024 20:19:00 +0000 (22:19 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 5 Aug 2024 20:19:00 +0000 (22:19 +0200)
* gettext-tools/src/msgmerge.c (silent_error_logger): Conditionalize the
__attribute__ annotation.

gettext-tools/src/msgmerge.c

index 7e1b770a3643063f55a04c0b608b73af200693b7..3bc330aa4a9dfb09f3cb29bc8bbe16f7cd2c4811 100644 (file)
@@ -950,7 +950,10 @@ definitions_destroy (definitions_ty *definitions)
    occurred at all.  */
 static void
 silent_error_logger (void *data, const char *format, ...)
-     __attribute__ ((__format__ (__printf__, 2, 3)));
+#if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 7) || __GNUC__ > 2)
+     __attribute__ ((__format__ (__printf__, 2, 3)))
+#endif
+;
 static void
 silent_error_logger (void *data, const char *format, ...)
 {