From 743bbe97693f648e05dc428a770fefed5f1a7d3f Mon Sep 17 00:00:00 2001 From: Mostyn Bramley-Moore Date: Thu, 2 Jan 2025 00:36:17 +0100 Subject: [PATCH] Fix another GCC version detection error (#2474) This is another instance of the same bug that was fixed in #2472. --- libarchive/archive.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3