aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2004-11-11 12:25:40 +0000
committerGisle Vanem <gvanem@broadpark.no>2004-11-11 12:25:40 +0000
commita654ef9ee623de8face4f5737442e9ea6ab794e4 (patch)
treec98ee680fbb0b7a77d6299b95538b502769c2d8e
parentc1688733c1eb372ebca459a9a2841e080e50a703 (diff)
Adapted for C++.
-rw-r--r--ares/ares.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ares/ares.h b/ares/ares.h
index 745b233db..162e7241a 100644
--- a/ares/ares.h
+++ b/ares/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 */