summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSam Yang <r52096@freescale.com>2009-05-05 11:31:51 +0800
committerSam Yang <r52096@freescale.com>2009-05-05 11:31:51 +0800
commit7dee32fa2c68bd0e85253a6b31b4ed5ce829c6dc (patch)
tree799d5d1263b9812e2b9373672ee2e1e3b0c397cd /include
parent8b26a32a37b6c90063276307ad418cf7a030ddeb (diff)
ENGR00112155 Error bool definition in ipu.h for user space c++ compiler
When compiling android opencore, a redeclared compiling error occur because of bool definition in ipu.h. Signed-off-by:Sam Yang <r52096@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/ipu.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/ipu.h b/include/linux/ipu.h
index 0857e18c7a43..d76602a5ae24 100644
--- a/include/linux/ipu.h
+++ b/include/linux/ipu.h
@@ -29,7 +29,9 @@
#ifdef __KERNEL__
#include <linux/interrupt.h>
#else
-#define bool char
+#ifndef __cplusplus
+typedef unsigned char bool;
+#endif
#define irqreturn_t int
#define dma_addr_t int
#define u32 unsigned int