projects
/
platform
/
upstream
/
c-ares.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1827728
)
Adapted for C++.
author
Gisle Vanem
<gvanem@broadpark.no>
Thu, 11 Nov 2004 12:25:40 +0000
(12:25 +0000)
committer
Gisle Vanem
<gvanem@broadpark.no>
Thu, 11 Nov 2004 12:25:40 +0000
(12:25 +0000)
ares.h
patch
|
blob
|
history
diff --git
a/ares.h
b/ares.h
index
745b233
..
162e724
100644
(file)
--- a/
ares.h
+++ b/
ares.h
@@
-37,6
+37,10
@@
#include <netinet/in.h>
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define ARES_SUCCESS 0
/* Server error codes (ARES_ENODATA indicates no relevant answer) */
@@
-140,4
+144,8
@@
void ares_free_hostent(struct hostent *host);
const char *ares_strerror(int code);
void ares_free_errmem(char *mem);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* ARES__H */