mirror of
https://github.com/GOSTSec/sgminer
synced 2025-08-26 13:52:02 +00:00
Cast socketfail to integer since SOCKET is an unsigned int on windows.
This commit is contained in:
parent
0a90207111
commit
1afb794cb3
2
util.h
2
util.h
@ -19,7 +19,7 @@
|
|||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
|
|
||||||
#define SOCKETTYPE SOCKET
|
#define SOCKETTYPE SOCKET
|
||||||
#define SOCKETFAIL(a) ((a) == SOCKET_ERROR)
|
#define SOCKETFAIL(a) ((int)(a) == SOCKET_ERROR)
|
||||||
#define INVSOCK INVALID_SOCKET
|
#define INVSOCK INVALID_SOCKET
|
||||||
#define INVINETADDR INADDR_NONE
|
#define INVINETADDR INADDR_NONE
|
||||||
#define CLOSESOCKET closesocket
|
#define CLOSESOCKET closesocket
|
||||||
|
Loading…
x
Reference in New Issue
Block a user