From: Mostyn Bramley-Moore Date: Wed, 1 Jan 2025 23:36:17 +0000 (+0100) Subject: Fix another GCC version detection error (#2474) X-Git-Tag: v3.8.0~75 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=743bbe97693f648e05dc428a770fefed5f1a7d3f;p=thirdparty%2Flibarchive.git Fix another GCC version detection error (#2474) This is another instance of the same bug that was fixed in #2472. --- diff --git a/libarchive/archive.h b/libarchive/archive.h index 20626b966..0dfb02f9d 100644 --- a/libarchive/archive.h +++ b/libarchive/archive.h @@ -132,7 +132,7 @@ typedef ssize_t la_ssize_t; #define __LA_PRINTF(fmtarg, firstvararg) /* nothing */ #endif -#if defined(__GNUC__) && __GNUC__ >= 3 && __GNUC_MINOR__ >= 1 +#if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)) # define __LA_DEPRECATED __attribute__((deprecated)) #else # define __LA_DEPRECATED