Skip to content

Commit f55602c

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 3811985 commit f55602c

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
@@ -352,11 +352,13 @@ static inline int getrlimit(int resource, struct rlimit *rlp)
352352
#ifndef __MINGW64_VERSION_MAJOR
353353
#define off_t off64_t
354354
#define lseek _lseeki64
355+
#ifndef _MSC_VER
355356
struct timespec {
356357
time_t tv_sec;
357358
long tv_nsec;
358359
};
359360
#endif
361+
#endif
360362

361363
struct mingw_stat {
362364
_dev_t st_dev;

0 commit comments

Comments
 (0)