diff --git a/include/r3_define.h b/include/r3_define.h index be7b7d3..bee91da 100644 --- a/include/r3_define.h +++ b/include/r3_define.h @@ -8,9 +8,15 @@ #ifndef DEFINE_H #define DEFINE_H +#ifndef bool typedef unsigned char bool; -#define FALSE 0 -#define TRUE 1 +#endif +#ifndef FALSE +# define FALSE 0 +#endif +#ifndef TRUE +# define TRUE 1 +#endif // #define DEBUG 1 #ifdef DEBUG diff --git a/src/token.c b/src/token.c index fd47fe9..cebbce9 100644 --- a/src/token.c +++ b/src/token.c @@ -9,6 +9,7 @@ #include #include #include "str_array.h" +#include "r3_str.h" str_array * str_array_create(int cap) {