Remove winsocks
This commit is contained in:
parent
81942e9097
commit
65e1a17386
@ -156,17 +156,8 @@ typedef _W64 unsigned int uintptr_t;
|
||||
#if defined(_MSC_VER)
|
||||
#include <sys/types.h>
|
||||
#include <sys/timeb.h>
|
||||
#include <winsock2.h>
|
||||
#include <windows.h>
|
||||
|
||||
static int gettimeofday(struct timeval* t, void* timezone)
|
||||
{
|
||||
struct _timeb timebuffer;
|
||||
_ftime( &timebuffer );
|
||||
t->tv_sec = (long)timebuffer.time;
|
||||
t->tv_usec = 1000*timebuffer.millitm;
|
||||
return 0;
|
||||
}
|
||||
#else
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user