Skip to content

Commit e1c3d6e

Browse files
jeffhostetlerdscho
authored andcommitted
msvc: do not re-declare the timespec struct
VS2015's headers already declare that struct. Signed-off-by: Jeff Hostetler <[email protected]>
1 parent e5ebc9a commit e1c3d6e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compat/mingw.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,11 +358,13 @@ static inline int getrlimit(int resource, struct rlimit *rlp)
358358
#ifndef __MINGW64_VERSION_MAJOR
359359
#define off_t off64_t
360360
#define lseek _lseeki64
361+
#ifndef _MSC_VER
361362
struct timespec {
362363
time_t tv_sec;
363364
long tv_nsec;
364365
};
365366
#endif
367+
#endif
366368

367369
struct mingw_stat {
368370
_dev_t st_dev;

0 commit comments

Comments
 (0)