From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TsasE-0008I2-Kz for barebox@lists.infradead.org; Tue, 08 Jan 2013 15:13:55 +0000 From: Steffen Trumtrar Date: Tue, 8 Jan 2013 16:13:43 +0100 Message-Id: <1357658023-31893-1-git-send-email-s.trumtrar@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] stringlist: fix cpp macro in header To: barebox@lists.infradead.org Cc: Steffen Trumtrar 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 --- include/stringlist.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/stringlist.h b/include/stringlist.h index dd3f623..8738137 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 @@ -29,4 +29,4 @@ static inline void string_list_free(struct string_list *sl) } } -#endif /* __STRING_H */ +#endif /* __STRINGLIST_H */ -- 1.7.10.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox