[v11,13/16] eal: do not define typeof macro when building with MSVC
Checks
Commit Message
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@linux.microsoft.com>
Acked-by: Morten Brørup <mb@smartsharesystems.com>
---
lib/eal/include/rte_common.h | 2 ++
1 file changed, 2 insertions(+)
@@ -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