From 84580c555c427875c6ae193ef2d09a156b9e0ef7 Mon Sep 17 00:00:00 2001 From: Alex Brooks Date: Tue, 27 Mar 2007 11:14:19 +0200 Subject: [PATCH] oping.h: Use `extern "C"' if `__cplusplus' is defined. --- src/oping.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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 */ -- 2.30.2