From 6eb1fe7b9b1ea91d01eae6fab49affb44f32d9b7 Mon Sep 17 00:00:00 2001 From: Rob Herring Date: Wed, 17 Jan 2018 08:44:07 -0600 Subject: [PATCH] Fix bool typedef warning Builds on AOSP master now fail with the error: activity_event_utils.h:27:9: error: 'bool' cannot be signed or unsigned typedef unsigned bool; Use the C99 type _Bool for bool instead. Signed-off-by: Rob Herring --- activity_event_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activity_event_utils.h b/activity_event_utils.h index b54d958..32e5cfc 100644 --- a/activity_event_utils.h +++ b/activity_event_utils.h @@ -24,7 +24,7 @@ #define MAX_ACTIVITIES 6 #define MAX_EVENTS_PER_ACTIVITY 2 -typedef unsigned bool; +typedef _Bool bool; #define true 1 #define false 0 -- 2.11.0