projects
/
liboping.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ae4a45
)
oping.h: Use `extern "C"' if `__cplusplus' is defined.
author
Alex Brooks
<a.brooks@acfr.usyd.edu.au>
Tue, 27 Mar 2007 09:14:19 +0000
(11:14 +0200)
committer
Florian Forster
<octo@verplant.org>
Tue, 27 Mar 2007 09:14:19 +0000
(11:14 +0200)
src/oping.h
patch
|
blob
|
history
diff --git
a/src/oping.h
b/src/oping.h
index
c013a50
..
b17e659
100644
(file)
--- a/
src/oping.h
+++ b/
src/oping.h
@@
-37,6
+37,10
@@
# 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 */