1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-12-22 04:02:04 +03:00

Fix redefinition of timespec in VS2015

VS2015 now defines timespec
This commit is contained in:
Kevin Wojniak
2015-10-27 10:43:35 -07:00
parent f75286c064
commit 61fcfcda68

View File

@@ -320,6 +320,9 @@ typedef DWORD clockid_t;
#define CLOCK_REALTIME (2) #define CLOCK_REALTIME (2)
#endif #endif
#if defined(_MSC_VER) && (_MSC_VER >= 1900)
#define _TIMESPEC_DEFINED
#endif
#ifndef _TIMESPEC_DEFINED #ifndef _TIMESPEC_DEFINED
struct timespec { struct timespec {
time_t tv_sec; /* seconds */ time_t tv_sec; /* seconds */