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!
main
theraven 15 years ago
parent f133fa7eb8
commit e35b0a09e1

@ -7,7 +7,9 @@
#ifndef __LIBOBJC_LOCK_H_INCLUDED__
#define __LIBOBJC_LOCK_H_INCLUDED__
#ifdef WIN32
#define BOOL _WINBOOL
# include <windows.h>
#undef BOOL
typedef HANDLE mutex_t;
# define INIT_LOCK(x) x = CreateMutex(NULL, FALSE, NULL)
# define LOCK(x) WaitForSingleObject(*x, INFINITE)

Loading…
Cancel
Save