avoid redefines

This commit is contained in:
Cindy Wang (CindyLinz) 2014-05-17 02:51:21 +08:00 committed by c9s
parent 22718fd143
commit 9e7a1313bc

View file

@ -8,9 +8,15 @@
#ifndef DEFINE_H
#define DEFINE_H
#ifndef bool
typedef unsigned char bool;
#endif
#ifndef FALSE
# define FALSE 0
#endif
#ifndef TRUE
# define TRUE 1
#endif
// #define DEBUG 1
#ifdef DEBUG