From: Tobias Rittweiler Date: Fri, 25 Dec 2015 12:11:00 +0000 (+0100) Subject: asn.h: Guard against being included twice. X-Git-Tag: v0.87~16^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F100%2Fhead;p=thirdparty%2Fmtr.git asn.h: Guard against being included twice. In order to surpress a warning on clang. --- diff --git a/asn.h b/asn.h index dd2d440..803a099 100644 --- a/asn.h +++ b/asn.h @@ -25,8 +25,9 @@ // It will evaluate to nothing if we don't need it. #ifndef NO_IPINFO -#define IPINFO +#ifndef IPINFO +#define IPINFO extern int ipinfo_no; extern int ipinfo_max; @@ -38,4 +39,5 @@ char *fmt_ipinfo(ip_t *addr); int get_iiwidth(void); int is_printii(void); -#endif +#endif /* IPINFO */ +#endif /* NO_IPINFO */