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