Permalink
Browse files

lring.h: fix usage in C++ project

  • Loading branch information...
1 parent 811b006 commit 3e0157ccebc3bd300dfe69ca551f0f653f0e3710 @indutny committed Oct 12, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 include/lring.h
View
@@ -1,5 +1,8 @@
#ifndef _INCLUDE_LRING_H_
#define _INCLUDE_LRING_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
#include <sys/types.h>
@@ -45,4 +48,7 @@ ssize_t lring_read(lring_t* ring, char* data, ssize_t size);
*/
ssize_t lring_peek(lring_t* ring, char* data, ssize_t size);
+#ifdef __cplusplus
+}
+#endif
#endif /* _INCLUDE_LRING_H_ */

0 comments on commit 3e0157c

Please sign in to comment.