Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

lring.h: fix usage in C++ project

  • Loading branch information...
commit 3e0157ccebc3bd300dfe69ca551f0f653f0e3710 1 parent 811b006
Fedor Indutny authored

Showing 1 changed file with 6 additions and 0 deletions. Show diff stats Hide diff stats

  1. +6 0 include/lring.h
6 include/lring.h
... ... @@ -1,5 +1,8 @@
1 1 #ifndef _INCLUDE_LRING_H_
2 2 #define _INCLUDE_LRING_H_
  3 +#ifdef __cplusplus
  4 +extern "C" {
  5 +#endif
3 6
4 7 #include <sys/types.h>
5 8
@@ -45,4 +48,7 @@ ssize_t lring_read(lring_t* ring, char* data, ssize_t size);
45 48 */
46 49 ssize_t lring_peek(lring_t* ring, char* data, ssize_t size);
47 50
  51 +#ifdef __cplusplus
  52 +}
  53 +#endif
48 54 #endif /* _INCLUDE_LRING_H_ */

0 comments on commit 3e0157c

Please sign in to comment.
Something went wrong with that request. Please try again.