Imported Upstream version 17.05
[deb_dpdk.git] / examples / performance-thread / common / lthread_int.h
index 031d8af..3f7fb92 100644 (file)
 #include <lthread_api.h>
 #define LTHREAD_INT_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include <stdint.h>
 #include <sys/time.h>
 #include <sys/types.h>
@@ -197,4 +201,8 @@ struct lthread {
        uint64_t diag_ref;                      /* ref to user diag data */
 } __rte_cache_aligned;
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif                         /* LTHREAD_INT_H */