]> granicus.if.org Git - curl/commit
examples/progressfunc: make it build on older libcurls
authorDaniel Stenberg <daniel@haxx.se>
Fri, 18 May 2018 08:28:17 +0000 (10:28 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 18 May 2018 11:42:18 +0000 (13:42 +0200)
commitccf85d4c2b1b2fac2f6cbac31d719bfa73b76ed2
treed5ec57ae3999899305cdcbf569bdae1986b3dff5
parenta1c02ac8175a211cf4b39a49c878823203d88309
examples/progressfunc: make it build on older libcurls

This example was changed in ce2140a8c1 to use the new microsecond based
getinfo option. This change makes it conditionally keep using the older
option so that the example still builds with older libcurl versions.

Closes #2584
docs/examples/progressfunc.c