소스 검색

Check for cURL in Visual Studio 2017 or later without config-generated.h.

Miku AuahDark 1 년 전
부모
커밋
5ac538bdbf
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      src/common/config.h

+ 6 - 0
src/common/config.h

@@ -10,6 +10,12 @@
 		// WinINet is only supported on desktop.
 		#define HTTPS_BACKEND_WININET
 	#endif
+	// Visual Studio 2017 supports __has_include
+	#if defined __has_include
+		#if __has_include(<curl/curl.h>)
+			#define HTTPS_BACKEND_CURL
+		#endif
+	#endif
 #elif defined(__ANDROID__)
 	#define HTTPS_BACKEND_ANDROID
 #elif defined(__APPLE__)