From bdd1b0f5ad13c079df702d86d968cfd12dd60424 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 18 Jun 2009 07:36:25 -0400 Subject: [PATCH] Added ifndef/def/endif protection to C headers. I don't include them multiple times, but maybe someone else will. --- err_mac.h | 5 +++++ stripchart.h | 5 +++++ 2 files changed, 10 insertions(+) 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 */ -- 2.26.2