mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] stringlist: fix cpp macro in header
@ 2013-01-08 15:13 Steffen Trumtrar
  2013-01-09  8:43 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Steffen Trumtrar @ 2013-01-08 15:13 UTC (permalink / raw)
  To: barebox; +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 <s.trumtrar@pengutronix.de>
---
 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 <linux/list.h>
 
@@ -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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] stringlist: fix cpp macro in header
  2013-01-08 15:13 [PATCH] stringlist: fix cpp macro in header Steffen Trumtrar
@ 2013-01-09  8:43 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2013-01-09  8:43 UTC (permalink / raw)
  To: Steffen Trumtrar; +Cc: barebox

On Tue, Jan 08, 2013 at 04:13:43PM +0100, Steffen Trumtrar wrote:
> 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>

Applied, thanks

Sascha

> ---
>  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 <linux/list.h>
>  
> @@ -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
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-01-09  8:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-08 15:13 [PATCH] stringlist: fix cpp macro in header Steffen Trumtrar
2013-01-09  8:43 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox