Skip to content

Commit

Permalink
[api] Use the SOCKET type for any WIN32 environment (#2152)
Browse files Browse the repository at this point in the history
including MinGW.
  • Loading branch information
Biswa96 authored Oct 11, 2021
1 parent 73b49fe commit 2fb3c9a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions srtcore/srt.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,7 @@ typedef int32_t SRTSOCKET;
static const int32_t SRTGROUP_MASK = (1 << 30);

#ifdef _WIN32
#ifndef __MINGW32__
typedef SOCKET SYSSOCKET;
#else
typedef int SYSSOCKET;
#endif
typedef SOCKET SYSSOCKET;
#else
typedef int SYSSOCKET;
#endif
Expand Down

0 comments on commit 2fb3c9a

Please sign in to comment.