Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9447b9e

Browse files
author
Edward Thomson
committed
xplat: use st_mtimespec everywhere on mac
1 parent 0c09753 commit 9447b9e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/common.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@
6262
# endif
6363
#define GIT_STDLIB_CALL
6464

65+
#ifdef GIT_USE_STAT_ATIMESPEC
66+
# define st_atim st_atimespec
67+
# define st_ctim st_ctimespec
68+
# define st_mtim st_mtimespec
69+
#endif
70+
6571
# include <arpa/inet.h>
6672

6773
#endif

src/fileops.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@
1313
#include "win32/findfile.h"
1414
#endif
1515

16-
#ifdef GIT_USE_STAT_ATIMESPEC
17-
#define st_atim st_atimespec
18-
#define st_ctim st_ctimespec
19-
#define st_mtim st_mtimespec
20-
#endif
21-
2216
GIT__USE_STRMAP
2317

2418
int git_futils_mkpath2file(const char *file_path, const mode_t mode)

0 commit comments

Comments
 (0)