mirror of
https://github.com/curl/curl.git
synced 2026-07-24 16:07:16 +03:00
parent
0550ec2bd4
commit
767909be08
2 changed files with 12 additions and 3 deletions
|
|
@ -34,17 +34,25 @@
|
|||
#endif
|
||||
|
||||
/* Compile-time deprecation macros. */
|
||||
#if defined(__GNUC__) && \
|
||||
((__GNUC__ > 12) || ((__GNUC__ == 12) && (__GNUC_MINOR__ >= 1 ))) && \
|
||||
#if (defined(__GNUC__) && \
|
||||
((__GNUC__ > 12) || ((__GNUC__ == 12) && (__GNUC_MINOR__ >= 1 ))) || \
|
||||
defined(__IAR_SYSTEMS_ICC__)) && \
|
||||
!defined(__INTEL_COMPILER) && \
|
||||
!defined(CURL_DISABLE_DEPRECATION) && !defined(BUILDING_LIBCURL)
|
||||
#define CURL_DEPRECATED(version, message) \
|
||||
__attribute__((deprecated("since " # version ". " message)))
|
||||
#if defined(__IAR_SYSTEMS_ICC__)
|
||||
#define CURL_IGNORE_DEPRECATION(statements) \
|
||||
_Pragma("diag_suppress=Pe1444") \
|
||||
statements \
|
||||
_Pragma("diag_default=Pe1444")
|
||||
#else
|
||||
#define CURL_IGNORE_DEPRECATION(statements) \
|
||||
_Pragma("GCC diagnostic push") \
|
||||
_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") \
|
||||
statements \
|
||||
_Pragma("GCC diagnostic pop")
|
||||
#endif
|
||||
#else
|
||||
#define CURL_DEPRECATED(version, message)
|
||||
#define CURL_IGNORE_DEPRECATION(statements) statements
|
||||
|
|
|
|||
|
|
@ -32,7 +32,8 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if (defined(__GNUC__) || defined(__clang__)) && \
|
||||
#if (defined(__GNUC__) || defined(__clang__) || \
|
||||
defined(__IAR_SYSTEMS_ICC__)) && \
|
||||
defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && \
|
||||
!defined(CURL_NO_FMT_CHECKS)
|
||||
#if defined(__MINGW32__) && !defined(__clang__)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue