Skip to content

Commit 4c691f9

Browse files
committed
When calling from C++...
1 parent 3546526 commit 4c691f9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

fishhook.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
#include <stddef.h>
2828
#include <stdint.h>
2929

30+
#ifdef __cplusplus
31+
extern "C" {
32+
#endif //__cplusplus
33+
3034
/*
3135
* A structure representing a particular intended rebinding from a symbol
3236
* name to its replacement
@@ -55,5 +59,9 @@ int rebind_symbols_image(void *header,
5559
struct rebinding rebindings[],
5660
size_t rebindings_nel);
5761

58-
#endif
62+
#ifdef __cplusplus
63+
}
64+
#endif //__cplusplus
65+
66+
#endif //fishhook_h
5967

0 commit comments

Comments
 (0)