msvc: do not re-declare the timespec struct
VS2015's headers already declare that struct. Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jeff Hostetler committed
Jun 19, 2019 at 14:06 UTC
172e54e2d7cd1207e2be4ad023d0337858a91d56
1 file changed
+2
compat/mingw.h
+2
@@ -352,11 +352,13 @@ static inline int getrlimit(int resource, struct rlimit *rlp)
352
#ifndef __MINGW64_VERSION_MAJOR
353
#define off_t off64_t
354
#define lseek _lseeki64
355
+#ifndef _MSC_VER
356
struct timespec {
357
time_t tv_sec;
358
long tv_nsec;
359
};
360
#endif
361
+#endif
362
363
struct mingw_stat {
364
_dev_t st_dev;