Skip to content

Commit 0a75dc7

Browse files
committed
rb.h.in: add extern "C" for C++
Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
1 parent 4561bde commit 0a75dc7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

rb.h.in

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
# include <semaphore.h>
1818
#endif
1919

20+
#ifdef __cplusplus
21+
extern "C" {
22+
#endif
23+
2024
enum rb_flags
2125
{
2226
/** ======================================================================
@@ -452,4 +456,8 @@ long rb_space(struct rb *rb);
452456
* ========================================================================== */
453457
int rb_stop(struct rb *rb);
454458

459+
#ifdef __cplusplus
460+
}
461+
#endif
462+
455463
#endif

0 commit comments

Comments
 (0)