summaryrefslogtreecommitdiff
path: root/src/win32/posix.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2015-04-27 17:47:51 -0400
committerEdward Thomson <ethomson@microsoft.com>2015-04-28 14:25:06 -0400
commitf3c444b87926bf1ae449f1820792bcdaf510f29e (patch)
tree03235e5398a20c14459b6552c38a0a11ee07bbe3 /src/win32/posix.h
parent1920ee4ef6096f888a9bb19bc329424d2c7ee656 (diff)
downloadlibgit2-f3c444b87926bf1ae449f1820792bcdaf510f29e.tar.gz
win32: abstract file attributes -> struct stat fn
Diffstat (limited to 'src/win32/posix.h')
-rw-r--r--src/win32/posix.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/win32/posix.h b/src/win32/posix.h
index 1a1ae76b2..bf35c8125 100644
--- a/src/win32/posix.h
+++ b/src/win32/posix.h
@@ -52,12 +52,4 @@ extern int p_lstat_posixly(const char *filename, struct stat *buf);
extern struct tm * p_localtime_r(const time_t *timer, struct tm *result);
extern struct tm * p_gmtime_r(const time_t *timer, struct tm *result);
-GIT_INLINE(time_t) filetime_to_time_t(const FILETIME *ft)
-{
- long long winTime = ((long long)ft->dwHighDateTime << 32) + ft->dwLowDateTime;
- winTime -= 116444736000000000LL; /* Windows to Unix Epoch conversion */
- winTime /= 10000000; /* Nano to seconds resolution */
- return (time_t)winTime;
-}
-
#endif