mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-04 13:37:18 +00:00
Use "__inline" instead of "inline" with MSVC
MSVC supports "inline" only in C++ code, not in C code.
This commit is contained in:
parent
c1802641ff
commit
3f66c20202
@ -603,7 +603,7 @@ int gitfo_getcwd(char *buffer_out, size_t size)
|
||||
}
|
||||
|
||||
#ifdef GIT_WIN32
|
||||
static inline time_t filetime_to_time_t(const FILETIME *ft)
|
||||
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 */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user