[PATCH 1/6] eal: make compatible with instruction set updates for MSVC
Andre Muezerie
andremue at linux.microsoft.com
Mon Feb 24 22:01:14 CET 2025
After the instruction set updates for MSVC the error below poped up:
../lib/eal/common/rte_random.c(6): fatal error C1083:
Cannot open include file: 'x86intrin.h': No such file or directory
The fix is to not include header x86intrin.h with MSVC.
Signed-off-by: Andre Muezerie <andremue at linux.microsoft.com>
---
lib/eal/common/rte_random.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/eal/common/rte_random.c b/lib/eal/common/rte_random.c
index 8e62578176..9354358818 100644
--- a/lib/eal/common/rte_random.c
+++ b/lib/eal/common/rte_random.c
@@ -3,8 +3,10 @@
*/
#ifdef __RDSEED__
+#ifndef RTE_TOOLCHAIN_MSVC
#include <x86intrin.h>
#endif
+#endif
#include <unistd.h>
#include <rte_bitops.h>
--
2.48.1.vfs.0.0
More information about the dev
mailing list