diff options
author | dartraiden <wowemuh@gmail.com> | 2024-09-11 21:49:43 +0300 |
---|---|---|
committer | dartraiden <wowemuh@gmail.com> | 2024-09-11 21:52:35 +0300 |
commit | c36db68a5f58ec6c9135eff778b6e77c30e58088 (patch) | |
tree | 22eea126db82c50388c9f94cd683d6ec6f04e6cb /libs/libcurl/include/curl/mprintf.h | |
parent | 02bb82c1c0a4031e7b2f5578370fa5acd620f8e1 (diff) |
libcurl: update to 8.10.0
Diffstat (limited to 'libs/libcurl/include/curl/mprintf.h')
-rw-r--r-- | libs/libcurl/include/curl/mprintf.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/libcurl/include/curl/mprintf.h b/libs/libcurl/include/curl/mprintf.h index fe27d98c1d..9fb67c1abd 100644 --- a/libs/libcurl/include/curl/mprintf.h +++ b/libs/libcurl/include/curl/mprintf.h @@ -32,13 +32,18 @@ extern "C" {
#endif
+#ifndef CURL_TEMP_PRINTF
#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__)
+#if defined(__MINGW_PRINTF_FORMAT) /* mingw-w64 3.0.0+. Needs stdio.h. */
#define CURL_TEMP_PRINTF(fmt, arg) \
- __attribute__((format(gnu_printf, fmt, arg)))
+ __attribute__((format(__MINGW_PRINTF_FORMAT, fmt, arg)))
+#else
+#define CURL_TEMP_PRINTF(fmt, arg)
+#endif
#else
#define CURL_TEMP_PRINTF(fmt, arg) \
__attribute__((format(printf, fmt, arg)))
@@ -46,6 +51,7 @@ extern "C" { #else
#define CURL_TEMP_PRINTF(fmt, arg)
#endif
+#endif
CURL_EXTERN int curl_mprintf(const char *format, ...)
CURL_TEMP_PRINTF(1, 2);
|