From: Tyler Retzlaff <[email protected]>
Signed-off-by: Tyler Retzlaff <[email protected]>
---
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