summaryrefslogtreecommitdiff
path: root/src/win32/w32_util.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2016-02-11 12:24:21 -0800
committerEdward Thomson <ethomson@github.com>2016-02-12 10:34:15 -0800
commit35439f5997c41d0c50d58997c2167ee93aad6c30 (patch)
tree131598ee3fa2374d4010828fc0407568fe80e0f8 /src/win32/w32_util.h
parent263e674ec6701b774d8f464150a9d30650c6da46 (diff)
downloadlibgit2-35439f5997c41d0c50d58997c2167ee93aad6c30.tar.gz
win32: introduce p_timeval that isn't stupid
Windows defines `timeval` with `long`, which we cannot sanely cope with. Instead, use a custom timeval struct.
Diffstat (limited to 'src/win32/w32_util.h')
-rw-r--r--src/win32/w32_util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/win32/w32_util.h b/src/win32/w32_util.h
index 727ed1cef..b095939a1 100644
--- a/src/win32/w32_util.h
+++ b/src/win32/w32_util.h
@@ -96,7 +96,7 @@ GIT_INLINE(void) git_win32__filetime_to_timespec(
}
GIT_INLINE(void) git_win32__timeval_to_filetime(
- FILETIME *ft, const struct timeval tv)
+ FILETIME *ft, const struct p_timeval tv)
{
long long ticks = (tv.tv_sec * 10000000LL) +
(tv.tv_usec * 10LL) + 116444736000000000LL;