From 4c691f94338765ef5104ca6d82796ea740a4e102 Mon Sep 17 00:00:00 2001 From: Shon Frazier Date: Thu, 28 Aug 2014 14:25:50 -0400 Subject: [PATCH] When calling from C++... --- fishhook.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/fishhook.h b/fishhook.h index 1b22d2e..6a7af76 100644 --- a/fishhook.h +++ b/fishhook.h @@ -27,6 +27,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif //__cplusplus + /* * A structure representing a particular intended rebinding from a symbol * name to its replacement @@ -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