avoid redefines

This commit is contained in:
Cindy Wang (CindyLinz) 2014-05-17 02:51:21 +08:00
parent 823ed29161
commit d5c5a5368f

View file

@ -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