diff options
| author | Sebastian Schuberth <sschuberth@gmail.com> | 2011-06-10 13:57:01 +0200 |
|---|---|---|
| committer | Sebastian Schuberth <sschuberth@gmail.com> | 2011-06-10 13:57:01 +0200 |
| commit | 3f66c202029ab9911b3c4ce0d01eaf0a98111aba (patch) | |
| tree | a53b2191c5ff73fa3e943da2ddc17567c81acbc8 | |
| parent | c1802641ff398d11396d6187a3972622b2ff8ba6 (diff) | |
| download | libgit2-3f66c202029ab9911b3c4ce0d01eaf0a98111aba.tar.gz | |
Use "__inline" instead of "inline" with MSVC
MSVC supports "inline" only in C++ code, not in C code.
| -rw-r--r-- | src/fileops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileops.c b/src/fileops.c index 54f6d9387..2a78764c6 100644 --- a/src/fileops.c +++ b/src/fileops.c @@ -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 */ |
