From: W. Trevor King Date: Thu, 18 Jun 2009 11:36:25 +0000 (-0400) Subject: Added ifndef/def/endif protection to C headers. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;ds=sidebyside;p=stripchart.git Added ifndef/def/endif protection to C headers. I don't include them multiple times, but maybe someone else will. --- diff --git a/err_mac.h b/err_mac.h index 11353e3..41730d6 100644 --- a/err_mac.h +++ b/err_mac.h @@ -23,6 +23,9 @@ Philadelphia PA 19104, USA. */ +#ifndef _ERR_MAC_H +#define _ERR_MAC_H + #include /* for fprintf(), stderr */ #define SUCCESS 0 @@ -163,3 +166,5 @@ static int err_mac_ans; fflush(stderr); \ } \ } while(0) + +#endif /* _ERR_MAC_H */ diff --git a/stripchart.h b/stripchart.h index b738e09..d564c19 100644 --- a/stripchart.h +++ b/stripchart.h @@ -22,6 +22,9 @@ Philadelphia PA 19104, USA. */ +#ifndef _STRIPCHART_H +#define _STRIPCHART_H + typedef struct stripchart_struct stripchart_t; extern int stripchart_create(stripchart_t **pChart, @@ -35,3 +38,5 @@ extern int stripchart_create(stripchart_t **pChart, extern int stripchart_point(stripchart_t *chart, double value); extern int stripchart_destroy(stripchart_t **pChart); + +#endif /* _STRIPCHART_H */