diff options
author | Gisle Vanem <gvanem@broadpark.no> | 2004-11-11 12:25:40 +0000 |
---|---|---|
committer | Gisle Vanem <gvanem@broadpark.no> | 2004-11-11 12:25:40 +0000 |
commit | 7319c3a20ab7c13a9f5c8fddc0e55bf913469ebb (patch) | |
tree | e875cf6dd44a38ad3917014cc3ec361a09ef3fce /ares.h | |
parent | 1827728a288d41a8d7a3504dfbdb0a6e7fa3b253 (diff) | |
download | c-ares-7319c3a20ab7c13a9f5c8fddc0e55bf913469ebb.tar.gz c-ares-7319c3a20ab7c13a9f5c8fddc0e55bf913469ebb.tar.bz2 c-ares-7319c3a20ab7c13a9f5c8fddc0e55bf913469ebb.zip |
Adapted for C++.
Diffstat (limited to 'ares.h')
-rw-r--r-- | ares.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 */ |