mirror of
https://github.com/git/git.git
synced 2026-01-19 07:04:49 +00:00
msvc: do not re-declare the timespec struct
VS2015's headers already declare that struct. Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
This commit is contained in:
committed by
Jameson Miller
parent
3d4428b7b2
commit
a4e18bc97b
@@ -394,11 +394,13 @@ static inline long long filetime_to_hnsec(const FILETIME *ft)
|
||||
#ifndef __MINGW64_VERSION_MAJOR
|
||||
#define off_t off64_t
|
||||
#define lseek _lseeki64
|
||||
#ifndef _MSC_VER
|
||||
struct timespec {
|
||||
time_t tv_sec;
|
||||
long tv_nsec;
|
||||
};
|
||||
#endif
|
||||
#endif
|
||||
|
||||
static inline void filetime_to_timespec(const FILETIME *ft, struct timespec *ts)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user