diff mbox

[U-Boot,02/17] fdt: Add header guard to fdtdec.h

Message ID 1326588449-1794-3-git-send-email-sjg@chromium.org
State Accepted, archived
Commit 5bfa78db4ffcc2c53aaf7e0a303008c80441b0b5
Headers show

Commit Message

Simon Glass Jan. 15, 2012, 12:47 a.m. UTC
This makes it easier to include this header from other headers.

Signed-off-by: Simon Glass <sjg@chromium.org>
---
 include/fdtdec.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/include/fdtdec.h b/include/fdtdec.h
index 81ce3f6..f60c969 100644
--- a/include/fdtdec.h
+++ b/include/fdtdec.h
@@ -19,6 +19,8 @@ 
  * MA 02111-1307 USA
  */
 
+#ifndef __fdtdec_h
+#define __fdtdec_h
 
 /*
  * This file contains convenience functions for decoding useful and
@@ -371,3 +373,4 @@  int fdtdec_get_byte_array(const void *blob, int node, const char *prop_name,
  */
 const u8 *fdtdec_locate_byte_array(const void *blob, int node,
 			     const char *prop_name, int count);
+#endif