From: Daniel Stenberg Date: Mon, 28 Nov 2022 07:22:02 +0000 (+0100) Subject: include/curl/curl.h: bump the deprecated requirements to gcc 6.1 X-Git-Tag: curl-7_87_0~102 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dbd74baf781e33e95071a729a81c91a972eff0b7;p=thirdparty%2Fcurl.git include/curl/curl.h: bump the deprecated requirements to gcc 6.1 Reported-by: Michael Kaufmann Fixes #9917 Closes #9987 --- diff --git a/include/curl/curl.h b/include/curl/curl.h index efbba31f80..77c0bfcb87 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -34,10 +34,9 @@ #endif /* Compile-time deprecation macros. */ -#if defined(__GNUC__) && defined(__GNUC_MINOR__) && \ - ((__GNUC__ > 5) || (__GNUC__ == 5 && __GNUC_MINOR__ >= 3)) && \ - !defined(__INTEL_COMPILER) && \ - !defined(CURL_DISABLE_DEPRECATION) && !defined(BUILDING_LIBCURL) +#if defined(__GNUC__) && (__GNUC__ >= 6) && \ + !defined(__INTEL_COMPILER) && \ + !defined(CURL_DISABLE_DEPRECATION) && !defined(BUILDING_LIBCURL) #define CURL_DEPRECATED(version, message) \ __attribute__((deprecated("since " # version ". " message))) #define CURL_IGNORE_DEPRECATION(statements) \