1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-27 23:14:21 +00:00

Cast socketfail to integer since SOCKET is an unsigned int on windows.

This commit is contained in:
Con Kolivas 2012-10-07 13:56:28 +11:00
parent 0a90207111
commit 1afb794cb3

2
util.h
View File

@ -19,7 +19,7 @@
#include <winsock2.h>
#define SOCKETTYPE SOCKET
#define SOCKETFAIL(a) ((a) == SOCKET_ERROR)
#define SOCKETFAIL(a) ((int)(a) == SOCKET_ERROR)
#define INVSOCK INVALID_SOCKET
#define INVINETADDR INADDR_NONE
#define CLOSESOCKET closesocket