[dpdk-dev] [PATCH] eal: standard c++ forbids defining the keyword asm as a macro
Tyler Retzlaff
roretzla at linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net
Wed Mar 24 05:26:51 CET 2021
From: Tyler Retzlaff <roretzla at linux.microsoft.com>
Signed-off-by: Tyler Retzlaff <roretzla at linux.microsoft.com>
---
lib/librte_eal/include/rte_common.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/librte_eal/include/rte_common.h b/lib/librte_eal/include/rte_common.h
index 1b630baf1..d5a32c66a 100644
--- a/lib/librte_eal/include/rte_common.h
+++ b/lib/librte_eal/include/rte_common.h
@@ -31,9 +31,11 @@ extern "C" {
#define typeof __typeof__
#endif
+#ifndef __cplusplus
#ifndef asm
#define asm __asm__
#endif
+#endif
/** C extension macro for environments lacking C11 features. */
#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 201112L
--
2.30.0.vfs.0.2
More information about the dev
mailing list