]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
include/curl/curl.h: bump the deprecated requirements to gcc 6.1
authorDaniel Stenberg <daniel@haxx.se>
Mon, 28 Nov 2022 07:22:02 +0000 (08:22 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 28 Nov 2022 12:13:53 +0000 (13:13 +0100)
Reported-by: Michael Kaufmann
Fixes #9917
Closes #9987

include/curl/curl.h

index efbba31f80e5dac94dd8169e3e080a1cc58fbefc..77c0bfcb871b9c65653865f3531f00d8fafb3110 100644 (file)
 #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) \