]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/include/rte_common.h
eal: fix C++11 compilation
[dpdk.git] / lib / librte_eal / common / include / rte_common.h
index 8ac940cbc5f2823d09f98c6a273601f1eb2afc56..497104976790653ba358ba79b4556fadcc952882 100644 (file)
@@ -51,6 +51,14 @@ extern "C" {
 #include <errno.h>
 #include <limits.h>
 
+#ifndef typeof
+#define typeof __typeof__
+#endif
+
+#ifndef asm
+#define asm __asm__
+#endif
+
 /*********** Macros to eliminate unused variable warnings ********/
 
 /**