mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-12 19:18:20 +00:00
fixed compile on win32
This commit is contained in:
parent
fb336cddbb
commit
2f969d9d6f
|
@ -735,9 +735,10 @@ void swap_endian(void *data, unsigned elem_size, unsigned num)
|
||||||
|
|
||||||
int net_socket_read_wait(NETSOCKET sock, int time)
|
int net_socket_read_wait(NETSOCKET sock, int time)
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
#if defined(CONF_FAMILY_WINDOWS)
|
#if defined(CONF_FAMILY_WINDOWS)
|
||||||
#error Not implemented
|
#error Not implemented
|
||||||
#else
|
#else*/
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
fd_set readfds;
|
fd_set readfds;
|
||||||
|
|
||||||
|
@ -752,7 +753,8 @@ int net_socket_read_wait(NETSOCKET sock, int time)
|
||||||
if(FD_ISSET(sock, &readfds))
|
if(FD_ISSET(sock, &readfds))
|
||||||
return 1;
|
return 1;
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
/*
|
||||||
|
#endif*/
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
|
|
Loading…
Reference in a new issue