Skip to contentSkip to conversation

malloc.h: protect it against multiple include

PATCH New Jean-Christophe PLAGNIOL-VILLARD 2 participants 2 messages Jun 13, 2009 – Jul 19, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 malloc.h: protect it against multiple include

---
 include/malloc.h |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
include/malloc.h +4 -1
index 47154b0..a38464e 100644
@@ -216,7 +216,8 @@
 */
 
 
-
+#ifndef __MALLOC_H__
+#define __MALLOC_H__
 
 /* Preliminaries */
 
@@ -940,3 +941,5 @@ struct mallinfo mALLINFo();
 #ifdef __cplusplus
 };  /* end of extern "C" */
 #endif
+
+#endif /* __MALLOC_H__ */
Signature · 1 line
1.6.3.1
#1 lore raw

PATCH 1/1 malloc.h: protect it against multiple include

Dear Jean-Christophe PLAGNIOL-VILLARD,

Quoted 4 lines · In message <[email protected]> you wrote:
---
 include/malloc.h |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The first 90% of a project takes 90% of the time, the last 10%  takes
the other 90% of the time.