oping.h: Use `extern "C"' if `__cplusplus' is defined.
authorAlex Brooks <a.brooks@acfr.usyd.edu.au>
Tue, 27 Mar 2007 09:14:19 +0000 (11:14 +0200)
committerFlorian Forster <octo@verplant.org>
Tue, 27 Mar 2007 09:14:19 +0000 (11:14 +0200)
src/oping.h

index c013a50..b17e659 100644 (file)
 # include <sys/socket.h>
 #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 */