Skip to content

Commit 82e81dd

Browse files
committed
More fix for MingGW32 compilation
1 parent a742c23 commit 82e81dd

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

cdk/extra/uuid/src/uuid_gen.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141

4242
#ifdef _WIN32
4343

44+
#ifndef __WINPTHREADS_VERSION
4445
typedef CRITICAL_SECTION pthread_mutex_t;
4546
typedef DWORD pthread_t;
4647
typedef struct thread_attr {
@@ -55,6 +56,7 @@ typedef struct thread_attr {
5556
#define pthread_mutex_trylock(A) win_pthread_mutex_trylock((A))
5657
#define pthread_mutex_unlock(A) (LeaveCriticalSection(A), 0)
5758
#define pthread_mutex_destroy(A) (DeleteCriticalSection(A), 0)
59+
#endif
5860

5961
#else
6062

cdk/foundation/socket_detail.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ namespace detail {
7474
Used for handling Winsock errors.
7575
*/
7676

77+
const error_category& winsock_error_category();
78+
7779
class error_category_winsock : public error_category_base
7880
{
7981
error_category_winsock() {}

0 commit comments

Comments
 (0)