From 93a280b7d75f949cef5d4bf21835f2b7b4d98415 Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Tue, 21 Oct 2008 15:21:37 +0000 Subject: [PATCH] eina_bool is now an unsigned char. This makes clear what size and if we have a signal or not in our type, so no compilers have the right to choose different for us (like they do with enum). Also fixes compile of C++ programs with eina_rectangle.h, that contains some inline code, the expression evaluates a boolean expression and compiler does not know how to convert that to old Eina_Bool. SVN revision: 36939 --- legacy/eina/src/include/eina_types.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/legacy/eina/src/include/eina_types.h b/legacy/eina/src/include/eina_types.h index 49c12b3c33..6b904fe400 100644 --- a/legacy/eina/src/include/eina_types.h +++ b/legacy/eina/src/include/eina_types.h @@ -61,10 +61,11 @@ # define FALSE 0 #endif -typedef enum { +typedef unsigned char Eina_Bool; +enum { EINA_FALSE = 0, EINA_TRUE = 1 -} Eina_Bool; +}; EAPI extern const unsigned int eina_prime_table[];