[10/17] msvc: do not re-declare the timespec struct
diff mbox series

Message ID 2ed60dfffc26445cb3ee876bbde90916c24234c8.1560860634.git.gitgitgadget@gmail.com
State New
Headers show
  • Fix MSVC support, at long last
Related show

Commit Message

Philippe Blain via GitGitGadget June 18, 2019, 12:24 p.m. UTC
From: Jeff Hostetler <jeffhost@microsoft.com>

VS2015's headers already declare that struct.

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
 compat/mingw.h | 2 ++
 1 file changed, 2 insertions(+)

diff mbox series

diff --git a/compat/mingw.h b/compat/mingw.h
index 210f1b01a8..a03e40e6e2 100644
--- a/compat/mingw.h
+++ b/compat/mingw.h
@@ -352,11 +352,13 @@  static inline int getrlimit(int resource, struct rlimit *rlp)
 #define off_t off64_t
 #define lseek _lseeki64
+#ifndef _MSC_VER
 struct timespec {
 	time_t tv_sec;
 	long tv_nsec;
 struct mingw_stat {
     _dev_t st_dev;