From: Alex Brooks Date: Tue, 27 Mar 2007 09:14:19 +0000 (+0200) Subject: oping.h: Use `extern "C"' if `__cplusplus' is defined. X-Git-Tag: liboping-0.3.5~2 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=84580c555c427875c6ae193ef2d09a156b9e0ef7;p=liboping.git oping.h: Use `extern "C"' if `__cplusplus' is defined. --- diff --git a/src/oping.h b/src/oping.h index c013a50..b17e659 100644 --- a/src/oping.h +++ b/src/oping.h @@ -37,6 +37,10 @@ # include #endif +#ifdef __cplusplus +extern "C" { +#endif + /* * Type definitions */ @@ -90,4 +94,8 @@ const char *ping_get_error (pingobj_t *obj); void *ping_iterator_get_context (pingobj_iter_t *iter); void ping_iterator_set_context (pingobj_iter_t *iter, void *context); +#ifdef __cplusplus +} +#endif + #endif /* OCTO_PING_H */