{"action":"created","issue":{"url":"https://api.github.com/repos/curl/curl/issues/859","repository_url":"https://api.github.com/repos/curl/curl","labels_url":"https://api.github.com/repos/curl/curl/issues/859/labels{/name}","comments_url":"https://api.github.com/repos/curl/curl/issues/859/comments","events_url":"https://api.github.com/repos/curl/curl/issues/859/events","html_url":"https://github.com/curl/curl/issues/859","id":158518542,"number":859,"title":"CURLOPT_PROTOCOLS invisible to the preprocessor when compiling against curl.h","user":{"login":"julik","id":16446,"avatar_url":"https://avatars.githubusercontent.com/u/16446?v=3","gravatar_id":"","url":"https://api.github.com/users/julik","html_url":"https://github.com/julik","followers_url":"https://api.github.com/users/julik/followers","following_url":"https://api.github.com/users/julik/following{/other_user}","gists_url":"https://api.github.com/users/julik/gists{/gist_id}","starred_url":"https://api.github.com/users/julik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julik/subscriptions","organizations_url":"https://api.github.com/users/julik/orgs","repos_url":"https://api.github.com/users/julik/repos","events_url":"https://api.github.com/users/julik/events{/privacy}","received_events_url":"https://api.github.com/users/julik/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-04T18:55:29Z","updated_at":"2016-06-04T22:39:50Z","closed_at":"2016-06-04T19:31:31Z","body":"### I did this\r\n\r\nUsed the following ifdef guard when building against libCURL:\r\n\r\n   #ifdef CURLOPT_PROTOCOLS\r\n     curl_easy_setopt(curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);\r\n   #endif\r\n\r\nThe code within the `#ifdef` got stripped because apparently CURLOPT_PROTOCOLS is not visible to the preprocessor (CURLPROTO_HTTP is though).\r\n\r\n### I expected the following\r\n\r\nOn my machine, I expected the ifdef to work (the option is available), and the requisite code within\r\nthe guard to be compiled.\r\n\r\nWhat am I doing wrong? Should I check for the availability of the option using some other means in the API?\r\n\r\n### curl/libcurl version\r\n\r\nlibcurl/7.43.0 SecureTransport zlib/1.2.\r\n\r\n### operating system\r\n\r\nOSX / Darwin 15.4.0"},"comment":{"url":"https://api.github.com/repos/curl/curl/issues/comments/223782169","html_url":"https://github.com/curl/curl/issues/859#issuecomment-223782169","issue_url":"https://api.github.com/repos/curl/curl/issues/859","id":223782169,"user":{"login":"bagder","id":177011,"avatar_url":"https://avatars.githubusercontent.com/u/177011?v=3","gravatar_id":"","url":"https://api.github.com/users/bagder","html_url":"https://github.com/bagder","followers_url":"https://api.github.com/users/bagder/followers","following_url":"https://api.github.com/users/bagder/following{/other_user}","gists_url":"https://api.github.com/users/bagder/gists{/gist_id}","starred_url":"https://api.github.com/users/bagder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bagder/subscriptions","organizations_url":"https://api.github.com/users/bagder/orgs","repos_url":"https://api.github.com/users/bagder/repos","events_url":"https://api.github.com/users/bagder/events{/privacy}","received_events_url":"https://api.github.com/users/bagder/received_events","type":"User","site_admin":false},"created_at":"2016-06-04T22:39:50Z","updated_at":"2016-06-04T22:39:50Z","body":"Also, we provide the [symbols-in-versions](https://curl.haxx.se/libcurl/c/symbols-in-versions.html) file for exactly that reason..."}}
{"actor":{"display_login":"bagder"}}