How to get and compare libcurl version?
问题 I am using libcurl setting OAuth 2.0 access token. Since libcurl 7.33 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_XOAUTH2_BEARER, char *token); option was added. Now I need to get the libcurl version and compare it with 7.33. In case where version is 7.33 or higher I will use CURLOPT_XOAUTH2_BEARER otherwise I will do something else. I know I should somehow use curl_version_info_data *curl_version_info( CURLversion type ); but I have no idea, how the data in struct look like and how to