I download the latest LLVM3.0 and Clang3.0 source, following the build instructions and finally get the VS solution file "LLVM.sln" and all the .vcproj files.
Then I build the libClang, but some errors ocurred when build project "LLVMSupport": error C2065: “PSRWLOCK”: Undefined identifier
the problem located at RWMutex.cpp which include "Windows/RWMutex.inc". in the file "RWMutex.inc" I notice a block of code:
// Windows has slim read-writer lock support on Vista and higher, so we
// will attempt to load the APIs. If they exist, we will use them, and
// if not, we will fall back on critical sections. When we drop support
// for XP, we can stop lazy-loading these APIs and just use them directly.
#if defined(__MINGW32__)
// Taken from WinNT.h
typedef struct _RTL_SRWLOCK {
PVOID Ptr;
} RTL_SRWLOCK, *PRTL_SRWLOCK;
// Taken from WinBase.h
typedef RTL_SRWLOCK SRWLOCK, *PSRWLOCK;
#endif
...
what does it mean? should I define a "MINGW32" even if I'm using a Microsoft C++ compiler?