]> git.droids-corp.org - dpdk.git/blobdiff - examples/performance-thread/common/lthread_diag_api.h
examples/performance-thread: support C++
[dpdk.git] / examples / performance-thread / common / lthread_diag_api.h
index 7ee514f8bbdb1c8a9c962b441de0826eaf04b59e..2fda0951fe187010f204d8bf8bf7565ebf4de2f5 100644 (file)
 #ifndef LTHREAD_DIAG_API_H_
 #define LTHREAD_DIAG_API_H_
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include <stdint.h>
 #include <inttypes.h>
 
@@ -322,4 +326,8 @@ lthread_cond_diag_ref(struct lthread_cond *c);
 uint64_t
 lthread_mutex_diag_ref(struct lthread_mutex *m);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif                         /* LTHREAD_DIAG_API_H_ */