Fixes build issue on Windows

Solves the following build issue:

error C2373: 'InitializeCriticalSectionEx' : redefinition;
different type modifiers
This commit is contained in:
Alessandro Pilotti 2014-01-28 01:06:10 +02:00
parent ae9c10e233
commit 9d6dcab3c6
2 changed files with 2 additions and 2 deletions

View File

@ -271,7 +271,7 @@ WINPR_API BOOL CancelWaitableTimer(HANDLE hTimer);
#endif #endif
#if ((_WIN32) && (_WIN32_WINNT < 0x0600)) #if ((_WIN32) && (_WIN32_WINNT < 0x0403))
WINPR_API BOOL InitializeCriticalSectionEx(LPCRITICAL_SECTION lpCriticalSection, DWORD dwSpinCount, DWORD Flags); WINPR_API BOOL InitializeCriticalSectionEx(LPCRITICAL_SECTION lpCriticalSection, DWORD dwSpinCount, DWORD Flags);

View File

@ -235,7 +235,7 @@ VOID DeleteCriticalSection(LPCRITICAL_SECTION lpCriticalSection)
#endif #endif
#if ((_WIN32) && (_WIN32_WINNT < 0x0600)) #if ((_WIN32) && (_WIN32_WINNT < 0x0403))
typedef BOOL (WINAPI * PINITIALIZE_CRITICAL_SECTION_EX_FN)(LPCRITICAL_SECTION lpCriticalSection, DWORD dwSpinCount, DWORD Flags); typedef BOOL (WINAPI * PINITIALIZE_CRITICAL_SECTION_EX_FN)(LPCRITICAL_SECTION lpCriticalSection, DWORD dwSpinCount, DWORD Flags);