]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix another GCC version detection error (#2474)
authorMostyn Bramley-Moore <mostyn@antipode.se>
Wed, 1 Jan 2025 23:36:17 +0000 (00:36 +0100)
committerMartin Matuska <martin@matuska.de>
Tue, 11 Mar 2025 09:31:51 +0000 (10:31 +0100)
This is another instance of the same bug that was fixed in #2472.

(cherry picked from commit 743bbe97693f648e05dc428a770fefed5f1a7d3f)

libarchive/archive.h

index 5b65475f61e291ce8460ef4fafbf747616f24724..c358e3a20fa34d93899ae011b985d3840a25405b 100644 (file)
@@ -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