Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

lring.h: fix usage in C++ project

  • Loading branch information...
commit 3e0157ccebc3bd300dfe69ca551f0f653f0e3710 1 parent 811b006
@indutny authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 include/lring.h
View
6 include/lring.h
@@ -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.
Something went wrong with that request. Please try again.