]> git.droids-corp.org - dpdk.git/blobdiff - lib/eal/include/rte_branch_prediction.h
eal/linux: fix illegal memory access in uevent handler
[dpdk.git] / lib / eal / include / rte_branch_prediction.h
index 854ef9e5dde248b76beea82f077ce121a21fd847..0256a9de60adb235f8f3d85fc19d75234edb75bd 100644 (file)
 #ifndef _RTE_BRANCH_PREDICTION_H_
 #define _RTE_BRANCH_PREDICTION_H_
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /**
  * Check if a branch is likely to be taken.
  *
@@ -38,4 +42,8 @@
 #define unlikely(x)    __builtin_expect(!!(x), 0)
 #endif /* unlikely */
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _RTE_BRANCH_PREDICTION_H_ */