Skip to content

Commit

Permalink
Remove the duplicate definition of win32_maperr
Browse files Browse the repository at this point in the history
  • Loading branch information
dra27 committed Jun 28, 2022
1 parent dbf1aa4 commit e5871d1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion otherlibs/unix/socket_win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ SOCKET caml_win32_socket(int domain, int type, int protocol,
return s;

err:
win32_maperr(WSAGetLastError());
caml_win32_maperr(WSAGetLastError());
return INVALID_SOCKET;
}

Expand Down
1 change: 0 additions & 1 deletion otherlibs/unix/unixsupport.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ extern SOCKET caml_win32_socket(int domain, int type, int protocol,
#define NO_CRT_FD (-1)

extern void caml_win32_maperr(DWORD errcode);
#define win32_maperr caml_win32_maperr
#endif /* _WIN32 */

#define Nothing ((value) 0)
Expand Down

0 comments on commit e5871d1

Please sign in to comment.