]> granicus.if.org Git - curl/commit
lib: include curl_printf.h as one of the last headers
authorDaniel Stenberg <daniel@haxx.se>
Fri, 29 Apr 2016 13:46:40 +0000 (15:46 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 29 Apr 2016 20:32:49 +0000 (22:32 +0200)
commit4f45240bc84a9aa648c8f7243be7b79e9f9323a5
tree975f7e1e617df32c42db93cf0cbacfd10ff640c4
parent63b5378a617437859da1e7ab5553d36eb83bdd44
lib: include curl_printf.h as one of the last headers

curl_printf.h defines printf to curl_mprintf, etc. This can cause
problems with external headers which may use
__attribute__((format(printf, ...))) markers etc.

To avoid that they cause problems with system includes, we include
curl_printf.h after any system headers. That makes the three last
headers to always be, and we keep them in this order:

 curl_printf.h
 curl_memory.h
 memdebug.h

None of them include system headers, they all do funny #defines.

Reported-by: David Benjamin
Fixes #743
49 files changed:
lib/asyn-ares.c
lib/asyn-thread.c
lib/base64.c
lib/conncache.c
lib/connect.c
lib/cookie.c
lib/curl_addrinfo.c
lib/curl_ntlm_core.c
lib/curl_ntlm_wb.c
lib/curl_sasl.c
lib/easy.c
lib/escape.c
lib/file.c
lib/formdata.c
lib/ftp.c
lib/hostip.c
lib/hostip4.c
lib/hostip6.c
lib/http.c
lib/http2.c
lib/http_digest.c
lib/http_negotiate.c
lib/http_ntlm.c
lib/http_proxy.c
lib/if2ip.c
lib/imap.c
lib/inet_ntop.c
lib/krb5.c
lib/ldap.c
lib/memdebug.c
lib/multi.c
lib/netrc.c
lib/openldap.c
lib/pingpong.c
lib/pop3.c
lib/rtsp.c
lib/sendf.c
lib/smtp.c
lib/socks_gssapi.c
lib/socks_sspi.c
lib/ssh.c
lib/strerror.c
lib/telnet.c
lib/tftp.c
lib/transfer.c
lib/url.c
lib/wildcard.c
lib/x509asn1.c
tests/libtest/testutil.c