X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Feui64.h;h=c24733d1248ac16b372926178f0206d341311ec6;hb=4f3e40659fcccce45068473ae94cfead18260c77;hp=496814d17b3b4557725da8d85b4cf4a30efcaf80;hpb=80b8744eb42c7493794f3e3fe0bf1ce14f53e6dd;p=ppp.git diff --git a/pppd/eui64.h b/pppd/eui64.h index 496814d..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(PPP_WITH_IPV6CP) -#error "this file should only be included when PPP_WITH_IPV6CP is defined" -#endif /* not defined(PPP_WITH_IPV6CP) */ +#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 */