Skip to content

Commit

Permalink
Fixes build issue on Windows
Browse files Browse the repository at this point in the history
Solves the following build issue:

error C2373: 'InitializeCriticalSectionEx' : redefinition;
different type modifiers
alexpilotti committed Jan 27, 2014
1 parent ae9c10e commit 9d6dcab
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion winpr/include/winpr/synch.h
Original file line number Diff line number Diff line change
@@ -271,7 +271,7 @@ WINPR_API BOOL CancelWaitableTimer(HANDLE hTimer);

#endif

#if ((_WIN32) && (_WIN32_WINNT < 0x0600))
#if ((_WIN32) && (_WIN32_WINNT < 0x0403))

WINPR_API BOOL InitializeCriticalSectionEx(LPCRITICAL_SECTION lpCriticalSection, DWORD dwSpinCount, DWORD Flags);

2 changes: 1 addition & 1 deletion winpr/libwinpr/synch/critical.c
Original file line number Diff line number Diff line change
@@ -235,7 +235,7 @@ VOID DeleteCriticalSection(LPCRITICAL_SECTION lpCriticalSection)

#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);

0 comments on commit 9d6dcab

Please sign in to comment.