projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'powerpc-4.9-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc...
[cascardo/linux.git]
/
arch
/
powerpc
/
boot
/
types.h
diff --git
a/arch/powerpc/boot/types.h
b/arch/powerpc/boot/types.h
index
85565a8
..
af6b66b
100644
(file)
--- a/
arch/powerpc/boot/types.h
+++ b/
arch/powerpc/boot/types.h
@@
-1,6
+1,8
@@
#ifndef _TYPES_H_
#define _TYPES_H_
#ifndef _TYPES_H_
#define _TYPES_H_
+#include <stdbool.h>
+
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
typedef unsigned char u8;
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
typedef unsigned char u8;
@@
-34,4
+36,16
@@
typedef s64 int64_t;
(void) (&_x == &_y); \
_x > _y ? _x : _y; })
(void) (&_x == &_y); \
_x > _y ? _x : _y; })
+#define min_t(type, a, b) min(((type) a), ((type) b))
+#define max_t(type, a, b) max(((type) a), ((type) b))
+
+typedef int bool;
+
+#ifndef true
+#define true 1
+#endif
+
+#ifndef false
+#define false 0
+#endif
#endif /* _TYPES_H_ */
#endif /* _TYPES_H_ */