From: ian Date: Wed, 14 Jul 1999 22:47:16 +0000 (+0000) Subject: Add extern "C" for C++. X-Git-Tag: adns-1.5.0-rc0~404 X-Git-Url: https://git.distorted.org.uk/~mdw/adns/commitdiff_plain/02b47faadfe03c3b302dadb78422e14648f07b50?ds=sidebyside;hp=9f81b2a29791c24d5e214b2ae5bc24a66cce96f3 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