Skip to content

Commit 0529940

Browse files
committed
Suppresses C++ name mangling
1 parent 378ec61 commit 0529940

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

cmp.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#ifndef CMP_H__
22
#define CMP_H__
33

4+
#if defined (__cplusplus)
5+
extern "C" {
6+
#endif
7+
48
struct cmp_ctx_s;
59

610
typedef bool (*cmp_reader)(struct cmp_ctx_s *ctx, void *data, size_t limit);
@@ -346,6 +350,10 @@ bool cmp_read_ext16(cmp_ctx_t *ctx, int8_t *type, uint16_t *size, void *data);
346350
bool cmp_read_ext32_marker(cmp_ctx_t *ctx, int8_t *type, uint32_t *size);
347351
bool cmp_read_ext32(cmp_ctx_t *ctx, int8_t *type, uint32_t *size, void *data);
348352

353+
#if defined (__cplusplus)
354+
}
355+
#endif
356+
349357
#endif
350358

351359
/* vi: set et ts=2 sw=2: */

0 commit comments

Comments
 (0)