X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Feui64.h;h=c48d689eda7b0dcf40df2e0bd83c7199d66705b0;hp=aa83e1a092b8abf28a31eb14fd85c1e5dba3eea5;hb=HEAD;hpb=2883dd07101bf851e2ea368f0c04c91aea85cff2 diff --git a/pppd/eui64.h b/pppd/eui64.h index aa83e1a..c24733d 100644 --- a/pppd/eui64.h +++ b/pppd/eui64.h @@ -33,15 +33,14 @@ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * */ +#ifndef PPP_EUI64_H +#define PPP_EUI64_H #include "pppdconf.h" -#ifndef __EUI64_H__ -#define __EUI64_H__ - -#if !defined(INET6) -#error "this file should only be included when INET6 is defined" -#endif /* not defined(INET6) */ +#ifdef __cplusplus +extern "C" { +#endif #if defined(SOL2) #include @@ -111,5 +110,8 @@ typedef union char *eui64_ntoa(eui64_t); /* Returns ascii representation of id */ -#endif /* __EUI64_H__ */ +#ifdef __cplusplus +} +#endif +#endif /* PPP_EUI64_H */