curl: Fix issue with printf checks in newer curl versions

Newer curl versions (as used on macOS via Homebrew) add attributes like

  __attribute__ ((format(printf, a, b)))

to their `curl_*printf*` functions, which fails if we redefine `printf`
as e.g. `builtin_printf` (pulled in via library.h).  We could disable
these checks via CURL_NO_FMT_CHECKS, but reordering the headers should
do the trick as well.
This commit is contained in:
Tobias Brunner
2024-01-16 11:00:29 +01:00
parent 67f0990530
commit bf017a9d17
+3 -3
View File
@@ -15,13 +15,13 @@
* for more details.
*/
#include "curl_plugin.h"
#include <curl/curl.h>
#include <library.h>
#include <utils/debug.h>
#include "curl_fetcher.h"
#include <curl/curl.h>
#include "curl_plugin.h"
#include "curl_fetcher.h"
typedef struct private_curl_plugin_t private_curl_plugin_t;