From 91db63f4d29dfcf5883a5b9428bfaa58072e402a Mon Sep 17 00:00:00 2001 From: cyberwarriorx Date: Sun, 16 Apr 2006 19:17:11 +0000 Subject: [PATCH] -Added BOOL type and TRUE and FALSE definitions(if they're not defined). When converting C++ -> C, please use this to convert bool variables --- trunk/desmume/src/types.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/trunk/desmume/src/types.h b/trunk/desmume/src/types.h index 9903e2d54..8a0d52a04 100644 --- a/trunk/desmume/src/types.h +++ b/trunk/desmume/src/types.h @@ -70,4 +70,14 @@ typedef signed long long s64; #endif #endif +typedef int BOOL; + +#ifndef TRUE +#define TRUE 1 +#endif + +#ifndef FALSE +#define FALSE 0 +#endif + #endif