Skip to content

Commit

Permalink
When calling from C++...
Browse files Browse the repository at this point in the history
  • Loading branch information
ShonFrazier committed Aug 28, 2014
1 parent 3546526 commit 4c691f9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion fishhook.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
#include <stddef.h>
#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif //__cplusplus

/*
* A structure representing a particular intended rebinding from a symbol
* name to its replacement
Expand Down Expand Up @@ -55,5 +59,9 @@ int rebind_symbols_image(void *header,
struct rebinding rebindings[],
size_t rebindings_nel);

#endif
#ifdef __cplusplus
}
#endif //__cplusplus

#endif //fishhook_h

0 comments on commit 4c691f9

Please sign in to comment.