Skip to content

Commit 0e88fd0

Browse files
committed
Add extern "C"
1 parent 80dc5cf commit 0e88fd0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

third-party/rust-demangle/rust-demangle.h

+8
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,16 @@
33

44
#define RUST_DEMANGLE_FLAG_VERBOSE 1
55

6+
#ifdef __cplusplus
7+
extern "C" {
8+
#endif
9+
610
bool rust_demangle_with_callback(
711
const char *mangled, int flags,
812
void (*callback)(const char *data, size_t len, void *opaque), void *opaque
913
);
1014
char *rust_demangle(const char *mangled, int flags);
15+
16+
#ifdef __cplusplus
17+
}
18+
#endif

0 commit comments

Comments
 (0)