[PATCH v8 14/14] eal: do not define typeof macro when building with MSVC
Tyler Retzlaff
roretzla at linux.microsoft.com
Tue May 2 05:15:41 CEST 2023
When building with MSVC do not assume typeof is a macro and don't
define a typeof macro that conflicts with C23 typeof keyword.
Signed-off-by: Tyler Retzlaff <roretzla at linux.microsoft.com>
Acked-by: Morten Brørup <mb at smartsharesystems.com>
---
lib/eal/include/rte_common.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/eal/include/rte_common.h b/lib/eal/include/rte_common.h
index 0c55a23..ce66287 100644
--- a/lib/eal/include/rte_common.h
+++ b/lib/eal/include/rte_common.h
@@ -24,9 +24,11 @@
/* OS specific include */
#include <rte_os.h>
+#ifndef RTE_TOOLCHAIN_MSVC
#ifndef typeof
#define typeof __typeof__
#endif
+#endif
#ifndef __cplusplus
#ifndef asm
--
1.8.3.1
More information about the dev
mailing list