Skip to content

Commit a8b48c0

Browse files
committed
add curlver.h include to umbrella header to ensure version checks work
1 parent c466923 commit a8b48c0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/_CFURLSessionInterface/include/CFURLSessionInterface.h

+5
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
#if defined(_WIN32)
3535
#include <winsock2.h>
3636
#endif
37+
#include <curl/curlver.h>
38+
39+
#if !defined(LIBCURL_VERSION_MAJOR)
40+
#error "LIBCURL_VERSION_MAJOR not defined, missing curlver.h"
41+
#endif
3742

3843
// 7.84.0 or later
3944
#if LIBCURL_VERSION_MAJOR > 7 || (LIBCURL_VERSION_MAJOR == 7 && LIBCURL_VERSION_MINOR > 84) || (LIBCURL_VERSION_MAJOR == 7 && LIBCURL_VERSION_MINOR == 84 && LIBCURL_VERSION_PATCH >= 0)

0 commit comments

Comments
 (0)