MSVC: use winsock2.h instead of sys/time.h for struct timeval
This commit is contained in:
parent
31c7151580
commit
3c3c3eeeca
@ -35,7 +35,12 @@
|
|||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#include <winsock.h> /* for struct timeval */
|
||||||
|
#else
|
||||||
#include <sys/time.h> /* for struct timeval */
|
#include <sys/time.h> /* for struct timeval */
|
||||||
|
#endif
|
||||||
|
|
||||||
struct tm
|
struct tm
|
||||||
GmTime(std::chrono::system_clock::time_point tp)
|
GmTime(std::chrono::system_clock::time_point tp)
|
||||||
|
Loading…
Reference in New Issue
Block a user