Code

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 c013a50f38d610a9e07d36dfc5529cfc1e5fda7c..b17e65920773985a0c232fdb0fe38a32b98b1658 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 */