From 9e7a1313bc07a4368931f56325eec7e4ed19d2e5 Mon Sep 17 00:00:00 2001 From: "Cindy Wang (CindyLinz)" Date: Sat, 17 May 2014 02:51:21 +0800 Subject: [PATCH] avoid redefines --- include/r3_define.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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