Skip to content

Commit 5ac538b

Browse files
committed
Check for cURL in Visual Studio 2017 or later without config-generated.h.
1 parent 3db6e5e commit 5ac538b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/common/config.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
// WinINet is only supported on desktop.
1111
#define HTTPS_BACKEND_WININET
1212
#endif
13+
// Visual Studio 2017 supports __has_include
14+
#if defined __has_include
15+
#if __has_include(<curl/curl.h>)
16+
#define HTTPS_BACKEND_CURL
17+
#endif
18+
#endif
1319
#elif defined(__ANDROID__)
1420
#define HTTPS_BACKEND_ANDROID
1521
#elif defined(__APPLE__)

0 commit comments

Comments
 (0)