From e35b0a09e1fe46ec84f195c503d5cc144e246786 Mon Sep 17 00:00:00 2001 From: theraven Date: Tue, 9 Aug 2011 12:57:20 +0000 Subject: [PATCH] windows.h defines its own BOOL, just to be special. Redefine this as WINBOOL to work around the incompatibility with ObjC. Patch by Mathieu Suen! --- lock.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lock.h b/lock.h index 3d9e70f..527c871 100644 --- a/lock.h +++ b/lock.h @@ -7,7 +7,9 @@ #ifndef __LIBOBJC_LOCK_H_INCLUDED__ #define __LIBOBJC_LOCK_H_INCLUDED__ #ifdef WIN32 +#define BOOL _WINBOOL # include +#undef BOOL typedef HANDLE mutex_t; # define INIT_LOCK(x) x = CreateMutex(NULL, FALSE, NULL) # define LOCK(x) WaitForSingleObject(*x, INFINITE)