mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +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)
|
||||
{
|
||||
/*
|
||||
#if defined(CONF_FAMILY_WINDOWS)
|
||||
#error Not implemented
|
||||
#else
|
||||
#else*/
|
||||
struct timeval tv;
|
||||
fd_set readfds;
|
||||
|
||||
|
@ -752,7 +753,8 @@ int net_socket_read_wait(NETSOCKET sock, int time)
|
|||
if(FD_ISSET(sock, &readfds))
|
||||
return 1;
|
||||
return 0;
|
||||
#endif
|
||||
/*
|
||||
#endif*/
|
||||
}
|
||||
|
||||
#if defined(__cplusplus)
|
||||
|
|
Loading…
Reference in a new issue