mirror of
https://github.com/espressif/mbedtls.git
synced 2025-06-05 17:37:33 +08:00
Support compilation using CLang on Windows
The Microsoft-only equivalent to GCC's `cpuid.h` is `intrin.h`. CLang contains both, but neither is directly included in Win32 builds, causing `__cpuid` to not be defined. This explicitly includes `intrin.h` when `cpuid.h` is not used. Signed-off-by: SlugFiller <5435495+SlugFiller@users.noreply.github.com>
This commit is contained in:
parent
1873d3bfc2
commit
5ca3f0ba00
@ -35,6 +35,8 @@
|
|||||||
#if MBEDTLS_AESNI_HAVE_CODE == 2
|
#if MBEDTLS_AESNI_HAVE_CODE == 2
|
||||||
#if !defined(_WIN32)
|
#if !defined(_WIN32)
|
||||||
#include <cpuid.h>
|
#include <cpuid.h>
|
||||||
|
#else
|
||||||
|
#include <intrin.h>
|
||||||
#endif
|
#endif
|
||||||
#include <immintrin.h>
|
#include <immintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user