Skip to content

Commit 8d09153

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 60331f8 commit 8d09153

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
@@ -360,11 +360,13 @@ static inline int getrlimit(int resource, struct rlimit *rlp)
360360
#ifndef __MINGW64_VERSION_MAJOR
361361
#define off_t off64_t
362362
#define lseek _lseeki64
363+
#ifndef _MSC_VER
363364
struct timespec {
364365
time_t tv_sec;
365366
long tv_nsec;
366367
};
367368
#endif
369+
#endif
368370

369371
struct mingw_stat {
370372
_dev_t st_dev;

0 commit comments

Comments
 (0)