Fixed struct timeval undeclared on Windows

This commit is contained in:
Paul-Louis Ageneau
2021-04-13 22:11:39 +02:00
parent 0c882d074e
commit c929be592b

View File

@ -21,7 +21,8 @@
#ifdef _WIN32
// taken from https://stackoverflow.com/questions/10905892/equivalent-of-gettimeday-for-windows
#include <Windows.h>
#include <windows.h>
#include <winsock2.h> // for struct timeval
struct timezone {
int tz_minuteswest;