Skip to content
  • Daniel Stenberg's avatar
    lib: include curl_printf.h as one of the last headers · 4f45240b
    Daniel Stenberg authored
    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
    4f45240b