From: ian Date: Wed, 14 Jul 1999 22:47:16 +0000 (+0000) Subject: Add extern "C" for C++. X-Git-Tag: rel-adns-0-3~2 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/adns/commitdiff_plain/02b47faadfe03c3b302dadb78422e14648f07b50 Add extern "C" for C++. --- diff --git a/src/adns.h b/src/adns.h index 996d282..21bc524 100644 --- a/src/adns.h +++ b/src/adns.h @@ -24,6 +24,9 @@ #ifndef ADNS_H_INCLUDED #define ADNS_H_INCLUDED +#ifdef __cplusplus +extern "C" { /* I really dislike this - iwj. */ +#endif #include @@ -564,4 +567,7 @@ const char *adns_errabbrev(adns_status st); * not returned by the same adns library. */ +#ifdef __cplusplus +} /* end of extern "C" */ +#endif #endif