summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2013-10-24 15:02:52 -0700
committerEric Anholt <eric@anholt.net>2013-10-25 15:01:57 -0700
commitdd09488648767bcda8d75f417baca1f7b7940ff1 (patch)
treed2b555190b42da2116d0811abb0dee8ed9faa521
parentf1994332b721c26f8722cee660ddc62e9ff48133 (diff)
Add multiple-inclusion guards for header files.
As is standard practice.
-rw-r--r--hash_table.h5
-rw-r--r--set.h5
2 files changed, 10 insertions, 0 deletions
diff --git a/hash_table.h b/hash_table.h
index 4e7ea81..59925e5 100644
--- a/hash_table.h
+++ b/hash_table.h
@@ -25,6 +25,9 @@
*
*/
+#ifndef HASH_TABLE_H
+#define HASH_TABLE_H
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -87,3 +90,5 @@ hash_table_random_entry(struct hash_table *ht,
#ifdef __cplusplus
} /* extern C */
#endif
+
+#endif
diff --git a/set.h b/set.h
index 6981eeb..a3d1eba 100644
--- a/set.h
+++ b/set.h
@@ -25,6 +25,9 @@
*
*/
+#ifndef SET_H
+#define SET_H
+
#include <inttypes.h>
struct set_entry {
@@ -65,3 +68,5 @@ set_next_entry(struct set *set, struct set_entry *entry);
struct set_entry *
set_random_entry(struct set *set,
int (*predicate)(struct set_entry *entry));
+
+#endif