File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 41
41
42
42
#ifdef _WIN32
43
43
44
+ #ifndef __WINPTHREADS_VERSION
44
45
typedef CRITICAL_SECTION pthread_mutex_t ;
45
46
typedef DWORD pthread_t ;
46
47
typedef struct thread_attr {
@@ -55,6 +56,7 @@ typedef struct thread_attr {
55
56
#define pthread_mutex_trylock (A ) win_pthread_mutex_trylock((A))
56
57
#define pthread_mutex_unlock (A ) (LeaveCriticalSection(A), 0 )
57
58
#define pthread_mutex_destroy (A ) (DeleteCriticalSection(A), 0 )
59
+ #endif
58
60
59
61
#else
60
62
Original file line number Diff line number Diff line change @@ -74,6 +74,8 @@ namespace detail {
74
74
Used for handling Winsock errors.
75
75
*/
76
76
77
+ const error_category& winsock_error_category ();
78
+
77
79
class error_category_winsock : public error_category_base
78
80
{
79
81
error_category_winsock () {}
You can’t perform that action at this time.
0 commit comments