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
This commit is contained in:
Gustavo Sverzut Barbieri 2008-10-21 15:21:37 +00:00
parent 2d8bb130ee
commit 93a280b7d7
1 changed files with 3 additions and 2 deletions

View File

@ -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[];