diff options
author | Daniel Stenberg <daniel@haxx.se> | 2016-04-29 15:46:40 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-04-29 22:32:49 +0200 |
commit | 4f45240bc84a9aa648c8f7243be7b79e9f9323a5 (patch) | |
tree | 975f7e1e617df32c42db93cf0cbacfd10ff640c4 /lib/http_negotiate.c | |
parent | 63b5378a617437859da1e7ab5553d36eb83bdd44 (diff) | |
download | curl-4f45240bc84a9aa648c8f7243be7b79e9f9323a5.tar.gz |
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
Diffstat (limited to 'lib/http_negotiate.c')
-rw-r--r-- | lib/http_negotiate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/http_negotiate.c b/lib/http_negotiate.c index 92113eb07..999bc0c52 100644 --- a/lib/http_negotiate.c +++ b/lib/http_negotiate.c @@ -29,9 +29,9 @@ #include "rawstr.h" #include "http_negotiate.h" #include "vauth/vauth.h" -#include "curl_printf.h" -/* The last #include files should be: */ +/* The last 3 #include files should be in this order */ +#include "curl_printf.h" #include "curl_memory.h" #include "memdebug.h" |