From 730d7ec528e492aa3f0c31c5b4ab7eb6467f0a43 Mon Sep 17 00:00:00 2001 From: archshift Date: Wed, 6 Aug 2014 04:15:23 -0700 Subject: [PATCH] Added comment explaining redefinition of BOOL --- pcsx2/PrecompiledHeader.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pcsx2/PrecompiledHeader.h b/pcsx2/PrecompiledHeader.h index f955a84d61..5859eee8dd 100644 --- a/pcsx2/PrecompiledHeader.h +++ b/pcsx2/PrecompiledHeader.h @@ -58,10 +58,12 @@ using std::min; using std::max; -typedef int BOOL; -#undef TRUE -#undef FALSE +// As plugins which use C have to be used with PCSX2, the BOOL type is redefined +// to prevent any C/C++ compatibility issues. +typedef int BOOL; +#undef TRUE +#undef FALSE #define TRUE 1 #define FALSE 0