- Remove the lines in winbuild/Makefile.vc that generate an error with
multiple SSL backends.
- Add /DCURL_WITH_MULTI_SSL in winbuild/MakefileBuild.vc if multiple SSL
backends are set.
Closes https://github.com/curl/curl/pull/3772
MBEDTLS = $(WITH_MBEDTLS)
!ENDIF
-!IF ( "$(USE_SSL)"=="true" && "$(USE_WINSSL)"=="true" ) \
- || ( "$(USE_SSL)"=="true" && "$(USE_MBEDTLS)"=="true" ) \
- || ( "$(USE_MBEDTLS)"=="true" && "$(USE_WINSSL)"=="true" )
-!ERROR SSL, MBEDTLS and WINSSL are mutual exclusive options.
-!ENDIF
-
!IF "$(WITH_CARES)"=="dll"
USE_CARES = true
CARES = dll
LFLAGS = $(LFLAGS) $(LFLAGS_PDB)\r
!ENDIF\r
\r
+!IF ( "$(USE_SSL)"=="true" && "$(USE_WINSSL)"=="true" ) \\r
+ || ( "$(USE_SSL)"=="true" && "$(USE_MBEDTLS)"=="true" ) \\r
+ || ( "$(USE_MBEDTLS)"=="true" && "$(USE_WINSSL)"=="true" )\r
+CFLAGS = $(CFLAGS) /DCURL_WITH_MULTI_SSL\r
+!ENDIF\r
+\r
LIB_DIROBJ = ..\builds\$(CONFIG_NAME_LIB)-obj-lib\r
CURL_DIROBJ = ..\builds\$(CONFIG_NAME_LIB)-obj-curl\r
DIRDIST = ..\builds\$(CONFIG_NAME_LIB)\\r