diff options
author | Przemyslaw Pawelczyk <przemoc@gmail.com> | 2013-05-03 23:32:14 +0200 |
---|---|---|
committer | Przemyslaw Pawelczyk <przemoc@gmail.com> | 2013-05-03 23:32:14 +0200 |
commit | d5a3600ae32b4d43c91bda2cc8cd554b04c119c6 (patch) | |
tree | 0724a77e2b030490e41f76067301e23bcf437ae4 | |
parent | c26e8b584e3ab7427c7e5b8bddd40511096ae321 (diff) |
Add include guards in header files.
-rw-r--r-- | metaentry.h | 4 | ||||
-rw-r--r-- | metastore.h | 5 | ||||
-rw-r--r-- | utils.h | 4 |
3 files changed, 13 insertions, 0 deletions
diff --git a/metaentry.h b/metaentry.h index bd80bc4..09a58a9 100644 --- a/metaentry.h +++ b/metaentry.h @@ -18,6 +18,9 @@ * */ +#ifndef METAENTRY_H +#define METAENTRY_H + #include <stdbool.h> #include "settings.h" @@ -90,3 +93,4 @@ void mentries_compare(struct metahash *mhashreal, int cmp), msettings *st); +#endif /* METAENTRY_H */ diff --git a/metastore.h b/metastore.h index 7bc7868..9da0f00 100644 --- a/metastore.h +++ b/metastore.h @@ -18,6 +18,9 @@ * */ +#ifndef METASTORE_H +#define METASTORE_H + /* Each file starts with SIGNATURE and VERSION */ #define SIGNATURE "MeTaSt00r3" #define SIGNATURELEN 10 @@ -32,3 +35,5 @@ #define ACTION_SAVE 0x02 #define ACTION_APPLY 0x04 #define ACTION_HELP 0x08 + +#endif /* METASTORE_H */ @@ -18,6 +18,9 @@ * */ +#ifndef UTILS_H +#define UTILS_H + /* For uint64_t */ #include <stdint.h> /* For ssize_t */ @@ -85,3 +88,4 @@ struct passwd *xgetpwnam(const char *name); /* Caching version of getpwuid */ struct passwd *xgetpwuid(uid_t uid); +#endif /* UTILS_H */ |