mirror of
https://github.com/curl/curl.git
synced 2025-09-14 08:02:44 +03:00
mbedtls: fix building with v3 in CMake Unity mode
Before this patch the internal feature detection macro `HAS_MBEDTLS_RESULT_CODE_BASED_FUNCTIONS` was defined in three files, with an incomplete logic in one of them. In Unity mode that spilled into another source file and broke the build. Closes #13377
This commit is contained in:
parent
edc2702a1f
commit
3774b8a9a7
|
@ -55,7 +55,8 @@
|
||||||
#else
|
#else
|
||||||
#include <mbedtls/config.h>
|
#include <mbedtls/config.h>
|
||||||
#endif
|
#endif
|
||||||
#if(MBEDTLS_VERSION_NUMBER >= 0x02070000)
|
#if(MBEDTLS_VERSION_NUMBER >= 0x02070000) && \
|
||||||
|
(MBEDTLS_VERSION_NUMBER < 0x03000000)
|
||||||
#define HAS_MBEDTLS_RESULT_CODE_BASED_FUNCTIONS
|
#define HAS_MBEDTLS_RESULT_CODE_BASED_FUNCTIONS
|
||||||
#endif
|
#endif
|
||||||
#endif /* USE_MBEDTLS */
|
#endif /* USE_MBEDTLS */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user