eal: fix C++11 compilation
[dpdk.git] / lib / librte_eal / common / include / rte_common.h
index 8ac940c..4971049 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 ********/
 
 /**