From a906e5e196551e1c232bb2d28413e918cf8889f1 Mon Sep 17 00:00:00 2001 From: Dirk Hörner Date: Mon, 4 Jun 2012 22:40:17 +0200 Subject: hostcc tools: include "compiler.h", fix included headers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When barebox headers get included from HOSTCC tools they should not include other architecture specific headers as barebox might get cross-compiled. Instead, the tool itself should include "compiler.h". Signed-off-by: Dirk Hörner Signed-off-by: Sascha Hauer --- include/envfs.h | 2 ++ include/image.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/envfs.h b/include/envfs.h index b5849d9b8d..67b890222c 100644 --- a/include/envfs.h +++ b/include/envfs.h @@ -1,7 +1,9 @@ #ifndef _ENVFS_H #define _ENVFS_H +#ifdef __BAREBOX__ #include +#endif #define ENVFS_MAGIC 0x798fba79 /* some random number */ #define ENVFS_INODE_MAGIC 0x67a8c78d diff --git a/include/image.h b/include/image.h index 35ff01b1c0..027b5f2520 100644 --- a/include/image.h +++ b/include/image.h @@ -31,8 +31,8 @@ #ifndef __IMAGE_H__ #define __IMAGE_H__ -#include #ifdef __BAREBOX__ +#include #include #include #include -- cgit v1.2.3