]> 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)
committerGitHub <noreply@github.com>
Wed, 1 Jan 2025 23:36:17 +0000 (15:36 -0800)
This is another instance of the same bug that was fixed in #2472.

libarchive/archive.h

index 20626b9665cb519cd0a5db58939eda78cfed75b7..0dfb02f9dc4b0171644fdb1ca5608b16f72418b7 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