Remove curl version check / include curl.h

This should help prevent breakage when the curl.h header is changed.

As far as I can tell this only increases the compile time by a hair, but prevents needing to create a PR every time curl.h gets updated. Alternatively I'm experimenting with CURL_STRICTER defined per a conversion with booto:

>booto | krakn: try having CURL_STRICTER defined for the build?

Credit goes to: flacs for the suggestion to include curl.h

Fix include
This commit is contained in:
Dan Beste 2016-08-04 22:21:17 -05:00 committed by Dan Beste
parent 2af4defaeb
commit 25c77babeb

View file

@ -11,19 +11,13 @@
#include <utility> #include <utility>
#include <vector> #include <vector>
#include <curl/curlver.h> #include <curl/curl.h>
#include "Common/CommonTypes.h" #include "Common/CommonTypes.h"
#include "Common/Event.h" #include "Common/Event.h"
#include "Common/FifoQueue.h" #include "Common/FifoQueue.h"
#include "Common/Flag.h" #include "Common/Flag.h"
#if LIBCURL_VERSION_MAJOR >= 7 && LIBCURL_VERSION_MINOR >= 50
typedef struct Curl_easy CURL;
#else
typedef void CURL;
#endif
// Utilities for analytics reporting in Dolphin. This reporting is designed to // Utilities for analytics reporting in Dolphin. This reporting is designed to
// provide anonymous data about how well Dolphin performs in the wild. It also // provide anonymous data about how well Dolphin performs in the wild. It also
// allows developers to declare trace points in Dolphin's source code and get // allows developers to declare trace points in Dolphin's source code and get