diff options
author | Steffen Trumtrar <s.trumtrar@pengutronix.de> | 2013-01-08 16:13:43 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-01-09 09:42:47 +0100 |
commit | 2a7b142b76d063f2ef1fb0812b616a5594935bf2 (patch) | |
tree | ff8cc06c0a65e2cbe284899ead9dcc3e4d267adb | |
parent | b46b57f35a27090cfbac4900d1a3d522d7898e53 (diff) | |
download | barebox-2a7b142b76d063f2ef1fb0812b616a5594935bf2.tar.gz barebox-2a7b142b76d063f2ef1fb0812b616a5594935bf2.tar.xz |
stringlist: fix cpp macro in header
Both include/string.h and include/stringlist.h define the c preprocessor macro
__STRING_H. This leads to a compile time error, in case both files are
(indirectly) included.
Rename the macro to __STRINGLIST_H in stringlist.h.
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | include/stringlist.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/stringlist.h b/include/stringlist.h index dd3f623618..8738137c8a 100644 --- a/include/stringlist.h +++ b/include/stringlist.h @@ -1,5 +1,5 @@ -#ifndef __STRING_H -#define __STRING_H +#ifndef __STRINGLIST_H +#define __STRINGLIST_H #include <linux/list.h> @@ -29,4 +29,4 @@ static inline void string_list_free(struct string_list *sl) } } -#endif /* __STRING_H */ +#endif /* __STRINGLIST_H */ |